diff --git a/web/index - 副本.html b/web/index - 副本.html new file mode 100644 index 0000000..83acc6e --- /dev/null +++ b/web/index - 副本.html @@ -0,0 +1,790 @@ + + + + + + demo + + + + + + + + + + + + +
+
+ + + + + + +
+ +
+
+ + +
+ +
+ +
+
+
+
+ +
+
+ +
+ + +
+
+
    +
  • + + 新建看板 +
  • +
  • + + 新建文件夹 +
  • +
    +
  • + + 创建空间 +
  • +
  • + + 导出看板 +
  • +
    +
  • + + 导入看板 +
  • +
+
+ + +
+
+ +
+ +
+
活跃用户
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+
+
+
+

日活跃用户数

+
+ +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ 过去30天 +
+ 按天 +
+
+ 趋势图 +
+
+

2021-03-23(二)

+
+
+
351
+
+
较环比
5.4%
+
较同比
5.4%
+
+
+ +
+
+
总和 12074
+
均值 402.47
+
+
+
+ +
+
+
+ +
+
+ +
+
+
+
+

日活跃用户数

+
+ +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ 过去30天 +
+ 按天 +
+
+ 趋势图 +
+
+ +
+
+
+ +
+
+
+ +
+
+ + +
+ + +
+
+
+
+
+ + 账户ID +
+ + + +
+ + +
+ + + +
+
搜 索
+
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+
+
163007711
+
163007711
+
+ +
+
+ 查看用户列表(77777) +
+
+ +
+ + +
+ +
+ + +
+
+
+

看板名称

+ +
+ +
+ +
+
+
取消
+
确定
+
+
+
+ +
+
+
+

移动至

+ +
+ +
+
+
我的看板
+
项目空间
+
+
+
+ + +
+
+
取消
+
确定
+
+
+
+ + +
+
+
+

复制看板

+ +
+ +
+
看板名称
+ +
+
+
添加至
+
+
我的看板
+
项目空间
+
+
+
+ + +
+
复制看板将同时复制看板内的报表
+
+
取消
+
确定
+
+
+
+ + +
+
+
+
操作提示
+

确认删除【】?该操作不可恢复

+
+ +
+
取消
+
删除
+
+
+
+ + +
+
+ +
+

创建空间

+

选择成员创建共享空间,添加看板至空间实现统一共享

+
+
+ 空间名称 + +
+
+ 空间成员 +
+添加
+
+
+ +
+
+ +
+
取消
+
完成
+
+
+
+
+ + +
+
+
+

新建看板

+ +
+ +
+
看板名称
+ +
+
+
添加至
+
+
我的看板
+
项目空间
+
+
+
+ + +
+ +
+
取消
+
确定
+
+
+
+ + +
+
+
+

新建文件夹

+ +
+ +
+
文件夹名称
+ +
+
+
添加至
+
+
我的看板
+
项目空间
+
+
+
+ + +
+ +
+
取消
+
确定
+
+
+
+ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/index.php b/web/index.php new file mode 100644 index 0000000..2686fbe --- /dev/null +++ b/web/index.php @@ -0,0 +1,60 @@ + \ No newline at end of file diff --git a/web/layui/css/layui.css b/web/layui/css/layui.css new file mode 100644 index 0000000..aab5e98 --- /dev/null +++ b/web/layui/css/layui.css @@ -0,0 +1 @@ +.layui-inline,img{display:inline-block;vertical-align:middle}h1,h2,h3,h4,h5,h6{font-weight:400}a,body{color:#333}.layui-edge,.layui-header,.layui-inline,.layui-main{position:relative}.layui-edge,hr{height:0;overflow:hidden}.layui-layout-body,.layui-side,.layui-side-scroll{overflow-x:hidden}.layui-btn,.layui-edge,.layui-inline,img{vertical-align:middle}.layui-btn,.layui-disabled,.layui-icon,.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-elip,.layui-form-checkbox span,.layui-form-pane .layui-form-label{text-overflow:ellipsis;white-space:nowrap}.layui-edge,.layui-elip,hr{overflow:hidden}blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}a:active,a:hover{outline:0}img{border:none}li{list-style:none}table{border-collapse:collapse;border-spacing:0}h4,h5,h6{font-size:100%}button,input,optgroup,option,select,textarea{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;outline:0}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}body{line-height:1.6;color:rgba(0,0,0,.85);font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif}hr{line-height:0;margin:10px 0;padding:0;border:none!important;border-bottom:1px solid #eee!important;clear:both;background:0 0}a{text-decoration:none}a:hover{color:#777}a cite{font-style:normal;*cursor:pointer}.layui-border-box,.layui-border-box *{box-sizing:border-box}.layui-box,.layui-box *{box-sizing:content-box}.layui-clear{clear:both;*zoom:1}.layui-clear:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-inline{*display:inline;*zoom:1}.layui-edge{display:inline-block;width:0;border-width:6px;border-style:dashed;border-color:transparent}.layui-edge-top{top:-4px;border-bottom-color:#999;border-bottom-style:solid}.layui-edge-right{border-left-color:#999;border-left-style:solid}.layui-edge-bottom{top:2px;border-top-color:#999;border-top-style:solid}.layui-edge-left{border-right-color:#999;border-right-style:solid}.layui-disabled,.layui-disabled:hover{color:#d2d2d2!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-show-v{visibility:visible!important}.layui-hide-v{visibility:hidden!important}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=256);src:url(../font/iconfont.eot?v=256#iefix) format('embedded-opentype'),url(../font/iconfont.woff2?v=256) format('woff2'),url(../font/iconfont.woff?v=256) format('woff'),url(../font/iconfont.ttf?v=256) format('truetype'),url(../font/iconfont.svg?v=256#layui-icon) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-icon-reply-fill:before{content:"\e611"}.layui-icon-set-fill:before{content:"\e614"}.layui-icon-menu-fill:before{content:"\e60f"}.layui-icon-search:before{content:"\e615"}.layui-icon-share:before{content:"\e641"}.layui-icon-set-sm:before{content:"\e620"}.layui-icon-engine:before{content:"\e628"}.layui-icon-close:before{content:"\1006"}.layui-icon-close-fill:before{content:"\1007"}.layui-icon-chart-screen:before{content:"\e629"}.layui-icon-star:before{content:"\e600"}.layui-icon-circle-dot:before{content:"\e617"}.layui-icon-chat:before{content:"\e606"}.layui-icon-release:before{content:"\e609"}.layui-icon-list:before{content:"\e60a"}.layui-icon-chart:before{content:"\e62c"}.layui-icon-ok-circle:before{content:"\1005"}.layui-icon-layim-theme:before{content:"\e61b"}.layui-icon-table:before{content:"\e62d"}.layui-icon-right:before{content:"\e602"}.layui-icon-left:before{content:"\e603"}.layui-icon-cart-simple:before{content:"\e698"}.layui-icon-face-cry:before{content:"\e69c"}.layui-icon-face-smile:before{content:"\e6af"}.layui-icon-survey:before{content:"\e6b2"}.layui-icon-tree:before{content:"\e62e"}.layui-icon-ie:before{content:"\e7bb"}.layui-icon-upload-circle:before{content:"\e62f"}.layui-icon-add-circle:before{content:"\e61f"}.layui-icon-download-circle:before{content:"\e601"}.layui-icon-templeate-1:before{content:"\e630"}.layui-icon-util:before{content:"\e631"}.layui-icon-face-surprised:before{content:"\e664"}.layui-icon-edit:before{content:"\e642"}.layui-icon-speaker:before{content:"\e645"}.layui-icon-down:before{content:"\e61a"}.layui-icon-file:before{content:"\e621"}.layui-icon-layouts:before{content:"\e632"}.layui-icon-rate-half:before{content:"\e6c9"}.layui-icon-add-circle-fine:before{content:"\e608"}.layui-icon-prev-circle:before{content:"\e633"}.layui-icon-read:before{content:"\e705"}.layui-icon-404:before{content:"\e61c"}.layui-icon-carousel:before{content:"\e634"}.layui-icon-help:before{content:"\e607"}.layui-icon-code-circle:before{content:"\e635"}.layui-icon-windows:before{content:"\e67f"}.layui-icon-water:before{content:"\e636"}.layui-icon-username:before{content:"\e66f"}.layui-icon-find-fill:before{content:"\e670"}.layui-icon-about:before{content:"\e60b"}.layui-icon-location:before{content:"\e715"}.layui-icon-up:before{content:"\e619"}.layui-icon-pause:before{content:"\e651"}.layui-icon-date:before{content:"\e637"}.layui-icon-layim-uploadfile:before{content:"\e61d"}.layui-icon-delete:before{content:"\e640"}.layui-icon-play:before{content:"\e652"}.layui-icon-top:before{content:"\e604"}.layui-icon-firefox:before{content:"\e686"}.layui-icon-friends:before{content:"\e612"}.layui-icon-refresh-3:before{content:"\e9aa"}.layui-icon-ok:before{content:"\e605"}.layui-icon-layer:before{content:"\e638"}.layui-icon-face-smile-fine:before{content:"\e60c"}.layui-icon-dollar:before{content:"\e659"}.layui-icon-group:before{content:"\e613"}.layui-icon-layim-download:before{content:"\e61e"}.layui-icon-picture-fine:before{content:"\e60d"}.layui-icon-link:before{content:"\e64c"}.layui-icon-diamond:before{content:"\e735"}.layui-icon-log:before{content:"\e60e"}.layui-icon-key:before{content:"\e683"}.layui-icon-rate-solid:before{content:"\e67a"}.layui-icon-fonts-del:before{content:"\e64f"}.layui-icon-unlink:before{content:"\e64d"}.layui-icon-fonts-clear:before{content:"\e639"}.layui-icon-triangle-r:before{content:"\e623"}.layui-icon-circle:before{content:"\e63f"}.layui-icon-radio:before{content:"\e643"}.layui-icon-align-center:before{content:"\e647"}.layui-icon-align-right:before{content:"\e648"}.layui-icon-align-left:before{content:"\e649"}.layui-icon-loading-1:before{content:"\e63e"}.layui-icon-return:before{content:"\e65c"}.layui-icon-fonts-strong:before{content:"\e62b"}.layui-icon-upload:before{content:"\e67c"}.layui-icon-dialogue:before{content:"\e63a"}.layui-icon-video:before{content:"\e6ed"}.layui-icon-headset:before{content:"\e6fc"}.layui-icon-cellphone-fine:before{content:"\e63b"}.layui-icon-add-1:before{content:"\e654"}.layui-icon-face-smile-b:before{content:"\e650"}.layui-icon-fonts-html:before{content:"\e64b"}.layui-icon-screen-full:before{content:"\e622"}.layui-icon-form:before{content:"\e63c"}.layui-icon-cart:before{content:"\e657"}.layui-icon-camera-fill:before{content:"\e65d"}.layui-icon-tabs:before{content:"\e62a"}.layui-icon-heart-fill:before{content:"\e68f"}.layui-icon-fonts-code:before{content:"\e64e"}.layui-icon-ios:before{content:"\e680"}.layui-icon-at:before{content:"\e687"}.layui-icon-fire:before{content:"\e756"}.layui-icon-set:before{content:"\e716"}.layui-icon-fonts-u:before{content:"\e646"}.layui-icon-triangle-d:before{content:"\e625"}.layui-icon-tips:before{content:"\e702"}.layui-icon-picture:before{content:"\e64a"}.layui-icon-more-vertical:before{content:"\e671"}.layui-icon-bluetooth:before{content:"\e689"}.layui-icon-flag:before{content:"\e66c"}.layui-icon-loading:before{content:"\e63d"}.layui-icon-fonts-i:before{content:"\e644"}.layui-icon-refresh-1:before{content:"\e666"}.layui-icon-rmb:before{content:"\e65e"}.layui-icon-addition:before{content:"\e624"}.layui-icon-home:before{content:"\e68e"}.layui-icon-time:before{content:"\e68d"}.layui-icon-user:before{content:"\e770"}.layui-icon-notice:before{content:"\e667"}.layui-icon-chrome:before{content:"\e68a"}.layui-icon-edge:before{content:"\e68b"}.layui-icon-login-weibo:before{content:"\e675"}.layui-icon-voice:before{content:"\e688"}.layui-icon-upload-drag:before{content:"\e681"}.layui-icon-login-qq:before{content:"\e676"}.layui-icon-snowflake:before{content:"\e6b1"}.layui-icon-heart:before{content:"\e68c"}.layui-icon-logout:before{content:"\e682"}.layui-icon-file-b:before{content:"\e655"}.layui-icon-template:before{content:"\e663"}.layui-icon-transfer:before{content:"\e691"}.layui-icon-auz:before{content:"\e672"}.layui-icon-console:before{content:"\e665"}.layui-icon-app:before{content:"\e653"}.layui-icon-prev:before{content:"\e65a"}.layui-icon-website:before{content:"\e7ae"}.layui-icon-next:before{content:"\e65b"}.layui-icon-component:before{content:"\e857"}.layui-icon-android:before{content:"\e684"}.layui-icon-more:before{content:"\e65f"}.layui-icon-login-wechat:before{content:"\e677"}.layui-icon-shrink-right:before{content:"\e668"}.layui-icon-spread-left:before{content:"\e66b"}.layui-icon-camera:before{content:"\e660"}.layui-icon-note:before{content:"\e66e"}.layui-icon-refresh:before{content:"\e669"}.layui-icon-female:before{content:"\e661"}.layui-icon-male:before{content:"\e662"}.layui-icon-screen-restore:before{content:"\e758"}.layui-icon-password:before{content:"\e673"}.layui-icon-senior:before{content:"\e674"}.layui-icon-theme:before{content:"\e66a"}.layui-icon-tread:before{content:"\e6c5"}.layui-icon-praise:before{content:"\e6c6"}.layui-icon-star-fill:before{content:"\e658"}.layui-icon-rate:before{content:"\e67b"}.layui-icon-template-1:before{content:"\e656"}.layui-icon-vercode:before{content:"\e679"}.layui-icon-service:before{content:"\e626"}.layui-icon-cellphone:before{content:"\e678"}.layui-icon-print:before{content:"\e66d"}.layui-icon-cols:before{content:"\e610"}.layui-icon-wifi:before{content:"\e7e0"}.layui-icon-export:before{content:"\e67d"}.layui-icon-rss:before{content:"\e808"}.layui-icon-slider:before{content:"\e714"}.layui-icon-email:before{content:"\e618"}.layui-icon-subtraction:before{content:"\e67e"}.layui-icon-mike:before{content:"\e6dc"}.layui-icon-light:before{content:"\e748"}.layui-icon-gift:before{content:"\e627"}.layui-icon-mute:before{content:"\e685"}.layui-icon-reduce-circle:before{content:"\e616"}.layui-icon-music:before{content:"\e690"}.layui-main{width:1140px;margin:0 auto}.layui-header{z-index:1000;height:60px}.layui-header a:hover{transition:all .5s;-webkit-transition:all .5s}.layui-side{position:fixed;left:0;top:0;bottom:0;z-index:999;width:200px}.layui-side-scroll{position:relative;width:220px;height:100%}.layui-body{position:relative;left:200px;right:0;top:0;bottom:0;z-index:900;width:auto;box-sizing:border-box}.layui-layout-admin .layui-header{position:fixed;top:0;left:0;right:0;background-color:#23262E}.layui-layout-admin .layui-side{top:60px;width:200px;overflow-x:hidden}.layui-layout-admin .layui-body{position:absolute;top:60px;padding-bottom:44px}.layui-layout-admin .layui-main{width:auto;margin:0 15px}.layui-layout-admin .layui-footer{position:fixed;left:200px;right:0;bottom:0;z-index:990;height:44px;line-height:44px;padding:0 15px;box-shadow:-1px 0 4px rgb(0 0 0 / 12%);background-color:#FAFAFA}.layui-layout-admin .layui-logo{position:absolute;left:0;top:0;width:200px;height:100%;line-height:60px;text-align:center;color:#009688;font-size:16px}.layui-layout-admin .layui-header .layui-nav{background:0 0}.layui-layout-left{position:absolute!important;left:200px;top:0}.layui-layout-right{position:absolute!important;right:0;top:0}.layui-container{position:relative;margin:0 auto;padding:0 15px;box-sizing:border-box}.layui-fluid{position:relative;margin:0 auto;padding:0 15px}.layui-row:after,.layui-row:before{content:"";display:block;clear:both}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9,.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9,.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9,.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{position:relative;display:block;box-sizing:border-box}.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{float:left}.layui-col-xs1{width:8.33333333%}.layui-col-xs2{width:16.66666667%}.layui-col-xs3{width:25%}.layui-col-xs4{width:33.33333333%}.layui-col-xs5{width:41.66666667%}.layui-col-xs6{width:50%}.layui-col-xs7{width:58.33333333%}.layui-col-xs8{width:66.66666667%}.layui-col-xs9{width:75%}.layui-col-xs10{width:83.33333333%}.layui-col-xs11{width:91.66666667%}.layui-col-xs12{width:100%}.layui-col-xs-offset1{margin-left:8.33333333%}.layui-col-xs-offset2{margin-left:16.66666667%}.layui-col-xs-offset3{margin-left:25%}.layui-col-xs-offset4{margin-left:33.33333333%}.layui-col-xs-offset5{margin-left:41.66666667%}.layui-col-xs-offset6{margin-left:50%}.layui-col-xs-offset7{margin-left:58.33333333%}.layui-col-xs-offset8{margin-left:66.66666667%}.layui-col-xs-offset9{margin-left:75%}.layui-col-xs-offset10{margin-left:83.33333333%}.layui-col-xs-offset11{margin-left:91.66666667%}.layui-col-xs-offset12{margin-left:100%}@media screen and (max-width:768px){.layui-hide-xs{display:none!important}.layui-show-xs-block{display:block!important}.layui-show-xs-inline{display:inline!important}.layui-show-xs-inline-block{display:inline-block!important}}@media screen and (min-width:768px){.layui-container{width:750px}.layui-hide-sm{display:none!important}.layui-show-sm-block{display:block!important}.layui-show-sm-inline{display:inline!important}.layui-show-sm-inline-block{display:inline-block!important}.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9{float:left}.layui-col-sm1{width:8.33333333%}.layui-col-sm2{width:16.66666667%}.layui-col-sm3{width:25%}.layui-col-sm4{width:33.33333333%}.layui-col-sm5{width:41.66666667%}.layui-col-sm6{width:50%}.layui-col-sm7{width:58.33333333%}.layui-col-sm8{width:66.66666667%}.layui-col-sm9{width:75%}.layui-col-sm10{width:83.33333333%}.layui-col-sm11{width:91.66666667%}.layui-col-sm12{width:100%}.layui-col-sm-offset1{margin-left:8.33333333%}.layui-col-sm-offset2{margin-left:16.66666667%}.layui-col-sm-offset3{margin-left:25%}.layui-col-sm-offset4{margin-left:33.33333333%}.layui-col-sm-offset5{margin-left:41.66666667%}.layui-col-sm-offset6{margin-left:50%}.layui-col-sm-offset7{margin-left:58.33333333%}.layui-col-sm-offset8{margin-left:66.66666667%}.layui-col-sm-offset9{margin-left:75%}.layui-col-sm-offset10{margin-left:83.33333333%}.layui-col-sm-offset11{margin-left:91.66666667%}.layui-col-sm-offset12{margin-left:100%}}@media screen and (min-width:992px){.layui-container{width:970px}.layui-hide-md{display:none!important}.layui-show-md-block{display:block!important}.layui-show-md-inline{display:inline!important}.layui-show-md-inline-block{display:inline-block!important}.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9{float:left}.layui-col-md1{width:8.33333333%}.layui-col-md2{width:16.66666667%}.layui-col-md3{width:25%}.layui-col-md4{width:33.33333333%}.layui-col-md5{width:41.66666667%}.layui-col-md6{width:50%}.layui-col-md7{width:58.33333333%}.layui-col-md8{width:66.66666667%}.layui-col-md9{width:75%}.layui-col-md10{width:83.33333333%}.layui-col-md11{width:91.66666667%}.layui-col-md12{width:100%}.layui-col-md-offset1{margin-left:8.33333333%}.layui-col-md-offset2{margin-left:16.66666667%}.layui-col-md-offset3{margin-left:25%}.layui-col-md-offset4{margin-left:33.33333333%}.layui-col-md-offset5{margin-left:41.66666667%}.layui-col-md-offset6{margin-left:50%}.layui-col-md-offset7{margin-left:58.33333333%}.layui-col-md-offset8{margin-left:66.66666667%}.layui-col-md-offset9{margin-left:75%}.layui-col-md-offset10{margin-left:83.33333333%}.layui-col-md-offset11{margin-left:91.66666667%}.layui-col-md-offset12{margin-left:100%}}@media screen and (min-width:1200px){.layui-container{width:1170px}.layui-hide-lg{display:none!important}.layui-show-lg-block{display:block!important}.layui-show-lg-inline{display:inline!important}.layui-show-lg-inline-block{display:inline-block!important}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9{float:left}.layui-col-lg1{width:8.33333333%}.layui-col-lg2{width:16.66666667%}.layui-col-lg3{width:25%}.layui-col-lg4{width:33.33333333%}.layui-col-lg5{width:41.66666667%}.layui-col-lg6{width:50%}.layui-col-lg7{width:58.33333333%}.layui-col-lg8{width:66.66666667%}.layui-col-lg9{width:75%}.layui-col-lg10{width:83.33333333%}.layui-col-lg11{width:91.66666667%}.layui-col-lg12{width:100%}.layui-col-lg-offset1{margin-left:8.33333333%}.layui-col-lg-offset2{margin-left:16.66666667%}.layui-col-lg-offset3{margin-left:25%}.layui-col-lg-offset4{margin-left:33.33333333%}.layui-col-lg-offset5{margin-left:41.66666667%}.layui-col-lg-offset6{margin-left:50%}.layui-col-lg-offset7{margin-left:58.33333333%}.layui-col-lg-offset8{margin-left:66.66666667%}.layui-col-lg-offset9{margin-left:75%}.layui-col-lg-offset10{margin-left:83.33333333%}.layui-col-lg-offset11{margin-left:91.66666667%}.layui-col-lg-offset12{margin-left:100%}}.layui-col-space1{margin:-.5px}.layui-col-space1>*{padding:.5px}.layui-col-space2{margin:-1px}.layui-col-space2>*{padding:1px}.layui-col-space4{margin:-2px}.layui-col-space4>*{padding:2px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space6{margin:-3px}.layui-col-space6>*{padding:3px}.layui-col-space8{margin:-4px}.layui-col-space8>*{padding:4px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space14{margin:-7px}.layui-col-space14>*{padding:7px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space16{margin:-8px}.layui-col-space16>*{padding:8px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space24{margin:-12px}.layui-col-space24>*{padding:12px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space26{margin:-13px}.layui-col-space26>*{padding:13px}.layui-col-space28{margin:-14px}.layui-col-space28>*{padding:14px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:1.6;border-left:5px solid #5FB878;border-radius:0 2px 2px 0;background-color:#FAFAFA}.layui-quote-nm{border-style:solid;border-width:1px 1px 1px 5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:1px 0 0}.layui-field-box{padding:15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#eee}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5FB878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#666}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#FAFAFA;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:1.6;color:#666}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-card:last-child{margin-bottom:0}.layui-card-header{position:relative;height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-card-body{position:relative;padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel{position:relative;border-width:1px;border-style:solid;border-radius:2px;box-shadow:1px 1px 4px rgb(0 0 0 / 8%);background-color:#fff;color:#666}.layui-bg-black,.layui-bg-blue,.layui-bg-cyan,.layui-bg-green,.layui-bg-orange,.layui-bg-red{color:#fff!important}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #eee;background-color:#fff}.layui-border,.layui-border-black,.layui-border-blue,.layui-border-cyan,.layui-border-green,.layui-border-orange,.layui-border-red{border-width:1px;border-style:solid}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-form-label,.layui-form-mid,.layui-form-select,.layui-input-block,.layui-input-inline,.layui-textarea{position:relative}.layui-bg-red{background-color:#FF5722!important}.layui-bg-orange{background-color:#FFB800!important}.layui-bg-green{background-color:#009688!important}.layui-bg-cyan{background-color:#2F4056!important}.layui-bg-blue{background-color:#1E9FFF!important}.layui-bg-black{background-color:#393D49!important}.layui-bg-gray{background-color:#FAFAFA!important;color:#666!important}.layui-badge-rim,.layui-border,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-panel,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#eee}.layui-border{color:#666!important}.layui-border-red{border-color:#FF5722!important;color:#FF5722!important}.layui-border-orange{border-color:#FFB800!important;color:#FFB800!important}.layui-border-green{border-color:#009688!important;color:#009688!important}.layui-border-cyan{border-color:#2F4056!important;color:#2F4056!important}.layui-border-blue{border-color:#1E9FFF!important;color:#1E9FFF!important}.layui-border-black{border-color:#393D49!important;color:#393D49!important}.layui-timeline-item:before{background-color:#eee}.layui-text{line-height:1.6;font-size:14px;color:#666}.layui-text h1,.layui-text h2,.layui-text h3{font-weight:500;color:#333}.layui-text h1{font-size:30px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text a:not(.layui-btn){color:#01AAED}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text em,.layui-word-aux{color:#999!important;padding-left:5px!important;padding-right:5px!important}.layui-font-12{font-size:12px}.layui-font-14{font-size:14px}.layui-font-16{font-size:16px}.layui-font-18{font-size:18px}.layui-font-20{font-size:20px}.layui-font-red{color:#FF5722!important}.layui-font-orange{color:#FFB800!important}.layui-font-green{color:#009688!important}.layui-font-cyan{color:#2F4056!important}.layui-font-blue{color:#01AAED!important}.layui-font-black{color:#000!important}.layui-font-gray{color:#c2c2c2!important}.layui-btn{display:inline-block;height:38px;line-height:38px;padding:0 18px;border:1px solid transparent;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border-radius:2px;cursor:pointer}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{padding:0 2px;vertical-align:middle\9;vertical-align:bottom}.layui-btn-primary{border-color:#d2d2d2;background:0 0;color:#666}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1E9FFF}.layui-btn-warm{background-color:#FFB800}.layui-btn-danger{background-color:#FF5722}.layui-btn-checked{background-color:#5FB878}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border-color:#eee;background-color:#FBFBFB;color:#d2d2d2;cursor:not-allowed;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:12px!important}.layui-btn-group{display:inline-block;vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#d2d2d2;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #d2d2d2}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#eee!important}.layui-input:focus,.layui-textarea:focus{border-color:#d2d2d2!important}.layui-textarea{min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#FF5722!important}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #d2d2d2;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12);box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#F6F6F6;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5FB878;color:#fff}.layui-form-checkbox,.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-checkbox,.layui-form-checkbox *,.layui-form-switch{display:inline-block;vertical-align:middle}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg);margin-top:-3px\9}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;height:30px;line-height:30px;margin-right:10px;padding-right:30px;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5FB878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5FB878}.layui-form-checked i,.layui-form-checked:hover i{color:#5FB878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#666}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5FB878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5FB878!important;background-color:#5FB878;color:#fff}.layui-checkbox-disbaled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2!important}.layui-checkbox-disbaled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5FB878;background-color:#5FB878}.layui-checkbox-disbaled,.layui-checkbox-disbaled i{border-color:#eee!important}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disbaled span{background-color:#eee!important}.layui-checkbox-disbaled em{color:#d2d2d2!important}.layui-checkbox-disbaled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio,.layui-form-radio *{display:inline-block;vertical-align:middle}.layui-form-radio{line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio:hover *,.layui-form-radioed,.layui-form-radioed>i{color:#5FB878}.layui-radio-disbaled>i{color:#eee!important}.layui-radio-disbaled *{color:#c2c2c2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#FBFBFB;overflow:hidden;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0 1px 0 0}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #eee}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393D49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#eee;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #eee}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-flow-more a *,.layui-laypage input,.layui-table-view select[lay-ignore]{display:inline-block}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-table,.layui-table-view{margin:10px 0}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;background-color:#fff;color:#666}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr,.layui-table[lay-even] tr:nth-child(even){background-color:#FAFAFA}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#eee}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0 0 1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0 1px 0 0}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding:15px 30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:40px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{font-size:12px;padding:5px 10px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:20px;line-height:20px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view .layui-table{position:relative;width:auto;margin:0}.layui-table-view .layui-table[lay-skin=line]{border-width:0 1px 0 0}.layui-table-view .layui-table[lay-skin=row]{border-width:0 0 1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:5px 0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-table td[data-edit=text]{cursor:text}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:110}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0 0 1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;overflow-y:auto;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-cell,.layui-table-tool-panel li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-table-tool-panel li{padding:0 10px;line-height:30px;-webkit-transition:.5s all;transition:.5s all}.layui-menu li,.layui-menu-body-title a:hover,.layui-menu-body-title>.layui-icon:hover{transition:all .3s}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%;padding-left:28px}.layui-table-tool-panel li:hover{background-color:#F6F6F6}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0 0 0 1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#666}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#666}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:28px;line-height:28px;padding:0 15px;position:relative;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01AAED}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{padding:0;text-align:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:0 -1px 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0 0 0 1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0 0 1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-page,.layui-table-total{border-width:1px 0 0;margin-bottom:-1px;overflow:hidden}.layui-table-page{position:relative;width:100%;padding:7px 7px 0;height:41px;font-size:12px;white-space:nowrap}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-7px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 14px 1px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15)}.layui-table-edit:focus{border-color:#5FB878!important}select.layui-table-edit{padding:0 0 0 10px;border-color:#d2d2d2}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-colorpicker-alpha-slider,.layui-colorpicker-side-slider,.layui-menu,.layui-menu *,.layui-nav{box-sizing:border-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0 0 0 1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-44px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#666}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#666;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-drag,.layui-upload-form,.layui-upload-wrap{display:inline-block}.layui-upload-list{margin:10px 0}.layui-upload-choose{padding:0 10px;color:#999}.layui-upload-drag{position:relative;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-menu{position:relative;margin:5px 0;background-color:#fff}.layui-menu li,.layui-menu-body-title a{padding:5px 15px}.layui-menu li{position:relative;margin:1px 0;width:calc(100% + 1px);line-height:22px;color:rgba(0,0,0,.8);font-size:14px;white-space:nowrap;cursor:pointer}.layui-menu li:hover{background-color:#F6F6F6}.layui-menu-item-parent:hover>.layui-menu-body-panel{display:block;animation-name:layui-fadein;animation-duration:.3s;animation-fill-mode:both;animation-delay:.2s}.layui-menu-item-group .layui-menu-body-title,.layui-menu-item-parent .layui-menu-body-title{padding-right:25px}.layui-menu .layui-menu-item-divider:hover,.layui-menu .layui-menu-item-group:hover,.layui-menu .layui-menu-item-none:hover{background:0 0;cursor:default}.layui-menu .layui-menu-item-group>ul{margin:5px 0 -5px}.layui-menu .layui-menu-item-group>.layui-menu-body-title{color:rgba(0,0,0,.35);user-select:none}.layui-menu .layui-menu-item-none{color:rgba(0,0,0,.35);cursor:default;text-align:center}.layui-menu .layui-menu-item-divider{margin:5px 0;padding:0;height:0;line-height:0;border-bottom:1px solid #eee;overflow:hidden}.layui-menu .layui-menu-item-down:hover,.layui-menu .layui-menu-item-up:hover{cursor:pointer}.layui-menu .layui-menu-item-up>.layui-menu-body-title{color:rgba(0,0,0,.8)}.layui-menu .layui-menu-item-up>ul{visibility:hidden;height:0;overflow:hidden}.layui-menu .layui-menu-item-down:hover>.layui-menu-body-title>.layui-icon,.layui-menu .layui-menu-item-up>.layui-menu-body-title:hover>.layui-icon{color:rgba(0,0,0,1)}.layui-menu .layui-menu-item-down>ul{visibility:visible;height:auto}.layui-breadcrumb,.layui-tree-btnGroup{visibility:hidden}.layui-menu .layui-menu-item-checked,.layui-menu .layui-menu-item-checked2{background-color:#F6F6F6!important;color:#5FB878}.layui-menu .layui-menu-item-checked a,.layui-menu .layui-menu-item-checked2 a{color:#5FB878}.layui-menu .layui-menu-item-checked:after{position:absolute;right:0;top:0;bottom:0;border-right:3px solid #5FB878;content:""}.layui-menu-body-title{position:relative;overflow:hidden;text-overflow:ellipsis}.layui-menu-body-title a{display:block;margin:-5px -15px;color:rgba(0,0,0,.8)}.layui-menu-body-title>.layui-icon{position:absolute;right:0;top:0;font-size:14px}.layui-menu-body-title>.layui-icon-right{right:-1px}.layui-menu-body-panel{display:none;position:absolute;top:-7px;left:100%;z-index:1000;margin-left:13px;padding:5px 0}.layui-transfer-active,.layui-transfer-box{display:inline-block;vertical-align:middle}.layui-menu-body-panel:before{content:"";position:absolute;width:20px;left:-16px;top:0;bottom:0}.layui-menu-body-panel-left{left:auto;right:100%;margin:0 13px}.layui-menu-body-panel-left:before{left:auto;right:-16px}.layui-menu-lg li{line-height:32px}.layui-menu-lg .layui-menu-body-title a:hover,.layui-menu-lg li:hover{background:0 0;color:#5FB878}.layui-menu-lg li .layui-menu-body-panel{margin-left:14px}.layui-menu-lg li .layui-menu-body-panel-left{margin:0 15px}.layui-dropdown{position:absolute;left:-999999px;top:-999999px;z-index:66666666;margin:5px 0;min-width:100px}.layui-dropdown:before{content:"";position:absolute;width:100%;height:6px;left:0;top:-6px}.layui-transfer-box,.layui-transfer-header,.layui-transfer-search{border-width:0;border-style:solid;border-color:#eee}.layui-transfer-box{position:relative;border-width:1px;width:200px;height:360px;border-radius:2px;background-color:#fff}.layui-transfer-box .layui-form-checkbox{width:100%;margin:0!important}.layui-transfer-header{height:38px;line-height:38px;padding:0 10px;border-bottom-width:1px}.layui-transfer-search{position:relative;padding:10px;border-bottom-width:1px}.layui-transfer-search .layui-input{height:32px;padding-left:30px;font-size:12px}.layui-transfer-search .layui-icon-search{position:absolute;left:20px;top:50%;margin-top:-8px;color:#666}.layui-transfer-active{margin:0 15px}.layui-transfer-active .layui-btn{display:block;margin:0;padding:0 15px;background-color:#5FB878;border-color:#5FB878;color:#fff}.layui-transfer-active .layui-btn-disabled{background-color:#FBFBFB;border-color:#eee;color:#d2d2d2}.layui-transfer-active .layui-btn:first-child{margin-bottom:15px}.layui-transfer-active .layui-btn .layui-icon{margin:0;font-size:14px!important}.layui-transfer-data{padding:5px 0;overflow:auto}.layui-transfer-data li{height:32px;line-height:32px;padding:0 10px}.layui-transfer-data li:hover{background-color:#F6F6F6;transition:.5s all}.layui-transfer-data .layui-none{padding:15px 10px;text-align:center;color:#999}.layui-nav{position:relative;padding:0 20px;background-color:#393D49;color:#fff;border-radius:2px;font-size:0}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar,.layui-nav-tree .layui-nav-itemed:after{position:absolute;left:0;top:0;width:0;height:5px;background-color:#5FB878;transition:all .2s;-webkit-transition:all .2s}.layui-nav-bar{z-index:1000}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{content:"";top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{content:"";width:0;height:0;border-style:solid dashed dashed;border-color:#fff transparent transparent;overflow:hidden;cursor:pointer;transition:all .2s;-webkit-transition:all .2s;position:absolute;top:50%;right:3px;margin-top:-4px;border-width:6px;border-top-color:rgba(255,255,255,.7)}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{margin-top:-9px;border-style:dashed dashed solid;border-color:transparent transparent #fff}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #d2d2d2;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#333}.layui-nav .layui-nav-child a:hover{background-color:#F6F6F6;color:#5FB878}.layui-nav-child dd{position:relative}.layui-nav .layui-nav-child dd.layui-this a,.layui-nav-child dd.layui-this{background-color:#5FB878;color:#fff}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:45px}.layui-nav-tree .layui-nav-item a{position:relative;height:45px;line-height:45px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item a:hover{background-color:#4E5465}.layui-nav-tree .layui-nav-bar{width:5px;height:0;background-color:#009688}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#f1f8ff;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child a{height:40px;line-height:40px;color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-tree .layui-nav-more{right:10px}.layui-nav-itemed>.layui-nav-child{display:block;padding:0;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-bg-blue .layui-nav-bar,.layui-bg-blue .layui-nav-itemed:after,.layui-bg-blue .layui-this:after{background-color:#93D1FF}.layui-bg-blue .layui-nav-child dd.layui-this{background-color:#1E9FFF}.layui-bg-blue .layui-nav-itemed>a,.layui-nav-tree.layui-bg-blue .layui-nav-title a,.layui-nav-tree.layui-bg-blue .layui-nav-title a:hover{background-color:#007DDB!important}.layui-breadcrumb{font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5FB878!important}.layui-breadcrumb a cite{color:#666;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s;position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:"";width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#eee;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\9;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:15px 0}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#FF5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5FB878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#FAFAFA}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5FB878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5FB878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#FF5722}.layui-timeline-item:before{content:"";position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:first-child:before{display:block}.layui-timeline-item:last-child:before{display:none}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px;line-height:22px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#FF5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#666}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-5px 6px 0}.layui-nav .layui-badge{margin-top:-10px}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\9;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add],.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\9;opacity:1;left:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#eee;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown]>[carousel-item]>*,.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9F9F9F;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#666;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #D9D9D9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #eee;border-left-width:6px;background-color:#FAFAFA;color:#333;font-family:Courier New;font-size:12px}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#FFB800;margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #eee;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#FFF;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;z-index:66666666;width:280px;padding:7px;background:#FFF;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#FFF,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #FFF;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#FF0,#0F0,#0FF,#00F,#F0F,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#666}.layui-slider{height:4px;background:#eee;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#FFF;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#FFF;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:66666666;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#FFF;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:"";position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #eee;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-14px}.layui-slider-input-btn{position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #eee}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #eee}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:33px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-tree{line-height:22px}.layui-tree .layui-form-checkbox{margin:0!important}.layui-tree-set{width:100%;position:relative}.layui-tree-pack{display:none;padding-left:20px;position:relative}.layui-tree-iconClick,.layui-tree-main{display:inline-block;vertical-align:middle}.layui-tree-line .layui-tree-pack{padding-left:27px}.layui-tree-line .layui-tree-set .layui-tree-set:after{content:"";position:absolute;top:14px;left:-9px;width:17px;height:0;border-top:1px dotted #c0c4cc}.layui-tree-entry{position:relative;padding:3px 0;height:20px;white-space:nowrap}.layui-tree-entry:hover{background-color:#eee}.layui-tree-line .layui-tree-entry:hover{background-color:rgba(0,0,0,0)}.layui-tree-line .layui-tree-entry:hover .layui-tree-txt{color:#999;text-decoration:underline;transition:.3s}.layui-tree-main{cursor:pointer;padding-right:10px}.layui-tree-line .layui-tree-set:before{content:"";position:absolute;top:0;left:-9px;width:0;height:100%;border-left:1px dotted #c0c4cc}.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before{height:13px}.layui-tree-line .layui-tree-set.layui-tree-setHide:before{height:0}.layui-tree-iconClick{position:relative;height:20px;line-height:20px;margin:0 10px;color:#c0c4cc}.layui-tree-icon{height:12px;line-height:12px;width:12px;text-align:center;border:1px solid #c0c4cc}.layui-tree-iconClick .layui-icon{font-size:18px}.layui-tree-icon .layui-icon{font-size:12px;color:#666}.layui-tree-iconArrow{padding:0 5px}.layui-tree-iconArrow:after{content:"";position:absolute;left:4px;top:3px;z-index:100;width:0;height:0;border-width:5px;border-style:solid;border-color:transparent transparent transparent #c0c4cc;transition:.5s}.layui-tree-btnGroup,.layui-tree-editInput{position:relative;vertical-align:middle;display:inline-block}.layui-tree-spread>.layui-tree-entry>.layui-tree-iconClick>.layui-tree-iconArrow:after{transform:rotate(90deg) translate(3px,4px)}.layui-tree-txt{display:inline-block;vertical-align:middle;color:#555}.layui-tree-search{margin-bottom:15px;color:#666}.layui-tree-btnGroup .layui-icon{display:inline-block;vertical-align:middle;padding:0 2px;cursor:pointer}.layui-tree-btnGroup .layui-icon:hover{color:#999;transition:.3s}.layui-tree-entry:hover .layui-tree-btnGroup{visibility:visible}.layui-tree-editInput{height:20px;line-height:20px;padding:0 3px;border:none;background-color:rgba(0,0,0,.05)}.layui-tree-emptyText{text-align:center;color:#999}.layui-anim{-webkit-animation-duration:.2s;-webkit-animation-fill-mode:both;animation-duration:.2s;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .2s;-webkit-transition:all .2s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,15px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,15px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@keyframes layui-down{0%{opacity:.3;transform:translate3d(0,-100%,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-down{animation-name:layui-down}@keyframes layui-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-downbit{animation-name:layui-downbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@keyframes layui-scalesmall{0%{opacity:.3;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall{animation-name:layui-scalesmall}@keyframes layui-scalesmall-spring{0%{opacity:.3;transform:scale(1.5)}80%{opacity:.8;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall-spring{animation-name:layui-scalesmall-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout} \ No newline at end of file diff --git a/web/layui/css/modules/code.css b/web/layui/css/modules/code.css new file mode 100644 index 0000000..0fee0c5 --- /dev/null +++ b/web/layui/css/modules/code.css @@ -0,0 +1 @@ +html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #eee;border-left-width:6px;background-color:#FAFAFA;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:40px;line-height:40px;border-bottom:1px solid #eee}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 10px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view .layui-code-ol li:first-child{padding-top:10px}.layui-code-view .layui-code-ol li:last-child{padding-bottom:10px}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}.layui-code-demo .layui-code{visibility:visible!important;margin:-15px;border-top:none;border-right:none;border-bottom:none}.layui-code-demo .layui-tab-content{padding:15px;border-top:none} \ No newline at end of file diff --git a/web/layui/css/modules/laydate/default/laydate.css b/web/layui/css/modules/laydate/default/laydate.css new file mode 100644 index 0000000..9f3064b --- /dev/null +++ b/web/layui/css/modules/laydate/default/laydate.css @@ -0,0 +1 @@ +.laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;animation-name:laydate-downbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@keyframes laydate-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content,.layui-laydate-range .laydate-main-list-1 .layui-laydate-header{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#B5FFF8}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eee;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} \ No newline at end of file diff --git a/web/layui/css/modules/layer/default/icon-ext.png b/web/layui/css/modules/layer/default/icon-ext.png new file mode 100644 index 0000000..bbbb669 Binary files /dev/null and b/web/layui/css/modules/layer/default/icon-ext.png differ diff --git a/web/layui/css/modules/layer/default/icon.png b/web/layui/css/modules/layer/default/icon.png new file mode 100644 index 0000000..3e17da8 Binary files /dev/null and b/web/layui/css/modules/layer/default/icon.png differ diff --git a/web/layui/css/modules/layer/default/layer.css b/web/layui/css/modules/layer/default/layer.css new file mode 100644 index 0000000..ef1db1d --- /dev/null +++ b/web/layui/css/modules/layer/default/layer.css @@ -0,0 +1 @@ +.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:50px;line-height:50px;border-bottom:1px solid #F0F0F0;font-size:14px;color:#333;overflow:hidden;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:17px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:300px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:260px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:300px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:51px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}} \ No newline at end of file diff --git a/web/layui/css/modules/layer/default/loading-0.gif b/web/layui/css/modules/layer/default/loading-0.gif new file mode 100644 index 0000000..6f3c953 Binary files /dev/null and b/web/layui/css/modules/layer/default/loading-0.gif differ diff --git a/web/layui/css/modules/layer/default/loading-1.gif b/web/layui/css/modules/layer/default/loading-1.gif new file mode 100644 index 0000000..db3a483 Binary files /dev/null and b/web/layui/css/modules/layer/default/loading-1.gif differ diff --git a/web/layui/css/modules/layer/default/loading-2.gif b/web/layui/css/modules/layer/default/loading-2.gif new file mode 100644 index 0000000..5bb90fd Binary files /dev/null and b/web/layui/css/modules/layer/default/loading-2.gif differ diff --git a/web/layui/font/iconfont.eot b/web/layui/font/iconfont.eot new file mode 100644 index 0000000..622d7ec Binary files /dev/null and b/web/layui/font/iconfont.eot differ diff --git a/web/layui/font/iconfont.svg b/web/layui/font/iconfont.svg new file mode 100644 index 0000000..999ca1f --- /dev/null +++ b/web/layui/font/iconfont.svg @@ -0,0 +1,554 @@ + + + + + +Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/layui/font/iconfont.ttf b/web/layui/font/iconfont.ttf new file mode 100644 index 0000000..06e30f9 Binary files /dev/null and b/web/layui/font/iconfont.ttf differ diff --git a/web/layui/font/iconfont.woff b/web/layui/font/iconfont.woff new file mode 100644 index 0000000..66a1783 Binary files /dev/null and b/web/layui/font/iconfont.woff differ diff --git a/web/layui/font/iconfont.woff2 b/web/layui/font/iconfont.woff2 new file mode 100644 index 0000000..47e9980 Binary files /dev/null and b/web/layui/font/iconfont.woff2 differ diff --git a/web/layui/layui.js b/web/layui/layui.js new file mode 100644 index 0000000..d2369f8 --- /dev/null +++ b/web/layui/layui.js @@ -0,0 +1,17982 @@ +/** layui v2.6.4 | Released under the MIT license */ +!(function (t) { + 'use strict' + var e = document, + n = { modules: {}, status: {}, timeout: 10, event: {} }, + r = function () { + this.v = '2.6.4' + }, + o = (function () { + var t = e.currentScript + ? e.currentScript.src + : (function () { + for ( + var t, n = e.scripts, r = n.length - 1, o = r; + o > 0; + o-- + ) + if ('interactive' === n[o].readyState) { + t = n[o].src + break + } + return t || n[r].src + })() + return t.substring(0, t.lastIndexOf('/') + 1) + })(), + a = function (e, n) { + ;(n = n || 'log'), + t.console && console[n] && console[n]('layui error hint: ' + e) + }, + i = + 'undefined' != typeof opera && + '[object Opera]' === opera.toString(), + u = (n.builtin = { + lay: 'lay', + layer: 'layer', + laydate: 'laydate', + laypage: 'laypage', + laytpl: 'laytpl', + layedit: 'layedit', + form: 'form', + upload: 'upload', + dropdown: 'dropdown', + transfer: 'transfer', + tree: 'tree', + table: 'table', + element: 'element', + rate: 'rate', + colorpicker: 'colorpicker', + slider: 'slider', + carousel: 'carousel', + flow: 'flow', + util: 'util', + code: 'code', + jquery: 'jquery', + all: 'all', + 'layui.all': 'layui.all', + }) + ;(r.prototype.cache = n), + (r.prototype.define = function (t, e) { + var r = this, + o = 'function' == typeof t, + a = function () { + var t = function (t, e) { + ;(layui[t] = e), (n.status[t] = !0) + } + return ( + 'function' == typeof e && + e(function (r, o) { + t(r, o), + (n.callback[r] = function () { + e(t) + }) + }), + this + ) + } + return o && ((e = t), (t = [])), r.use(t, a, null, 'define'), r + }), + (r.prototype.use = function (t, r, l, c) { + function s(t, e) { + var r = + 'PLaySTATION 3' === navigator.platform + ? /^complete$/ + : /^(complete|loaded)$/ + ;('load' === t.type || + r.test((t.currentTarget || t.srcElement).readyState)) && + ((n.modules[v] = e), + d.removeChild(g), + (function o() { + return ++h > (1e3 * n.timeout) / 4 + ? a(v + ' is not a valid module', 'error') + : void (n.status[v] ? p() : setTimeout(o, 4)) + })()) + } + function p() { + l.push(layui[v]), + t.length > 1 + ? f.use(t.slice(1), r, l, c) + : 'function' == typeof r && + (function () { + return layui.jquery && + 'function' == typeof layui.jquery && + 'define' !== c + ? layui.jquery(function () { + r.apply(layui, l) + }) + : void r.apply(layui, l) + })() + } + var f = this, + y = (n.dir = n.dir ? n.dir : o), + d = e.getElementsByTagName('head')[0] + ;(t = (function () { + return 'string' == typeof t + ? [t] + : 'function' == typeof t + ? ((r = t), ['all']) + : t + })()), + window.jQuery && + jQuery.fn.on && + (f.each(t, function (e, n) { + 'jquery' === n && t.splice(e, 1) + }), + (layui.jquery = layui.$ = jQuery)) + var v = t[0], + h = 0 + if ( + ((l = l || []), + (n.host = + n.host || + (y.match(/\/\/([\s\S]+?)\//) || [ + '//' + location.host + '/', + ])[0]), + 0 === t.length || (layui['layui.all'] && u[v])) + ) + return p(), f + var m = + (u[v] + ? y + 'modules/' + : /^\{\/\}/.test(f.modules[v]) + ? '' + : n.base || '') + + (f.modules[v] || v) + + '.js' + if ( + ((m = m.replace(/^\{\/\}/, '')), + !n.modules[v] && layui[v] && (n.modules[v] = m), + n.modules[v]) + ) + !(function b() { + return ++h > (1e3 * n.timeout) / 4 + ? a(v + ' is not a valid module', 'error') + : void ('string' == typeof n.modules[v] && n.status[v] + ? p() + : setTimeout(b, 4)) + })() + else { + var g = e.createElement('script') + ;(g.async = !0), + (g.charset = 'utf-8'), + (g.src = + m + + (function () { + var t = + n.version === !0 + ? n.v || new Date().getTime() + : n.version || '' + return t ? '?v=' + t : '' + })()), + d.appendChild(g), + !g.attachEvent || + (g.attachEvent.toString && + g.attachEvent.toString().indexOf('[native code') < 0) || + i + ? g.addEventListener( + 'load', + function (t) { + s(t, m) + }, + !1 + ) + : g.attachEvent('onreadystatechange', function (t) { + s(t, m) + }), + (n.modules[v] = m) + } + return f + }), + (r.prototype.getStyle = function (e, n) { + var r = e.currentStyle + ? e.currentStyle + : t.getComputedStyle(e, null) + return r[r.getPropertyValue ? 'getPropertyValue' : 'getAttribute']( + n + ) + }), + (r.prototype.link = function (t, r, o) { + var i = this, + u = e.createElement('link'), + l = e.getElementsByTagName('head')[0] + 'string' == typeof r && (o = r) + var c = (o || t).replace(/\.|\//g, ''), + s = (u.id = 'layuicss-' + c), + p = 0 + return ( + (u.rel = 'stylesheet'), + (u.href = t + (n.debug ? '?v=' + new Date().getTime() : '')), + (u.media = 'all'), + e.getElementById(s) || l.appendChild(u), + 'function' != typeof r + ? i + : ((function f() { + return ++p > (1e3 * n.timeout) / 100 + ? a(t + ' timeout') + : void (1989 === + parseInt( + i.getStyle(e.getElementById(s), 'width') + ) + ? (function () { + r() + })() + : setTimeout(f, 100)) + })(), + i) + ) + }), + (n.callback = {}), + (r.prototype.factory = function (t) { + if (layui[t]) + return 'function' == typeof n.callback[t] ? n.callback[t] : null + }), + (r.prototype.addcss = function (t, e, r) { + return layui.link(n.dir + 'css/' + t, e, r) + }), + (r.prototype.img = function (t, e, n) { + var r = new Image() + return ( + (r.src = t), + r.complete + ? e(r) + : ((r.onload = function () { + ;(r.onload = null), 'function' == typeof e && e(r) + }), + void (r.onerror = function (t) { + ;(r.onerror = null), 'function' == typeof n && n(t) + })) + ) + }), + (r.prototype.config = function (t) { + t = t || {} + for (var e in t) n[e] = t[e] + return this + }), + (r.prototype.modules = (function () { + var t = {} + for (var e in u) t[e] = u[e] + return t + })()), + (r.prototype.extend = function (t) { + var e = this + t = t || {} + for (var n in t) + e[n] || e.modules[n] + ? a(n + ' Module already exists', 'error') + : (e.modules[n] = t[n]) + return e + }), + (r.prototype.router = function (t) { + var e = this, + t = t || location.hash, + n = { + path: [], + search: {}, + hash: (t.match(/[^#](#.*$)/) || [])[1] || '', + } + return /^#\//.test(t) + ? ((t = t.replace(/^#\//, '')), + (n.href = '/' + t), + (t = t.replace(/([^#])(#.*$)/, '$1').split('/') || []), + e.each(t, function (t, e) { + ;/^\w+=/.test(e) + ? (function () { + ;(e = e.split('=')), (n.search[e[0]] = e[1]) + })() + : n.path.push(e) + }), + n) + : n + }), + (r.prototype.url = function (t) { + var e = this, + n = { + pathname: (function () { + var e = t + ? (function () { + var e = + (t.match(/\.[^.]+?\/.+/) || [])[0] || '' + return e + .replace(/^[^\/]+/, '') + .replace(/\?.+/, '') + })() + : location.pathname + return e.replace(/^\//, '').split('/') + })(), + search: (function () { + var n = {}, + r = ( + t + ? (function () { + var e = + (t.match(/\?.+/) || [])[0] || '' + return e.replace(/\#.+/, '') + })() + : location.search + ) + .replace(/^\?+/, '') + .split('&') + return ( + e.each(r, function (t, e) { + var r = e.indexOf('='), + o = (function () { + return r < 0 + ? e.substr(0, e.length) + : 0 !== r && e.substr(0, r) + })() + o && (n[o] = r > 0 ? e.substr(r + 1) : null) + }), + n + ) + })(), + hash: e.router( + (function () { + return t + ? (t.match(/#.+/) || [])[0] || '' + : location.hash + })() + ), + } + return n + }), + (r.prototype.data = function (e, n, r) { + if ( + ((e = e || 'layui'), + (r = r || localStorage), + t.JSON && t.JSON.parse) + ) { + if (null === n) return delete r[e] + n = 'object' == typeof n ? n : { key: n } + try { + var o = JSON.parse(r[e]) + } catch (a) { + var o = {} + } + return ( + 'value' in n && (o[n.key] = n.value), + n.remove && delete o[n.key], + (r[e] = JSON.stringify(o)), + n.key ? o[n.key] : o + ) + } + }), + (r.prototype.sessionData = function (t, e) { + return this.data(t, e, sessionStorage) + }), + (r.prototype.device = function (e) { + var n = navigator.userAgent.toLowerCase(), + r = function (t) { + var e = new RegExp(t + '/([^\\s\\_\\-]+)') + return (t = (n.match(e) || [])[1]), t || !1 + }, + o = { + os: (function () { + return /windows/.test(n) + ? 'windows' + : /linux/.test(n) + ? 'linux' + : /iphone|ipod|ipad|ios/.test(n) + ? 'ios' + : /mac/.test(n) + ? 'mac' + : void 0 + })(), + ie: (function () { + return ( + !!(t.ActiveXObject || 'ActiveXObject' in t) && + ((n.match(/msie\s(\d+)/) || [])[1] || '11') + ) + })(), + weixin: r('micromessenger'), + } + return ( + e && !o[e] && (o[e] = r(e)), + (o.android = /android/.test(n)), + (o.ios = 'ios' === o.os), + (o.mobile = !(!o.android && !o.ios)), + o + ) + }), + (r.prototype.hint = function () { + return { error: a } + }), + (r.prototype.each = function (t, e) { + var n, + r = this + if ('function' != typeof e) return r + if (((t = t || []), t.constructor === Object)) { + for (n in t) if (e.call(t[n], n, t[n])) break + } else for (n = 0; n < t.length && !e.call(t[n], n, t[n]); n++); + return r + }), + (r.prototype.sort = function (t, e, n) { + var r = JSON.parse(JSON.stringify(t || [])) + return e + ? (r.sort(function (t, n) { + var r = /^-?\d+$/, + o = t[e], + a = n[e] + return ( + r.test(o) && (o = parseFloat(o)), + r.test(a) && (a = parseFloat(a)), + o && !a + ? 1 + : !o && a + ? -1 + : o > a + ? 1 + : o < a + ? -1 + : 0 + ) + }), + n && r.reverse(), + r) + : r + }), + (r.prototype.stope = function (e) { + e = e || t.event + try { + e.stopPropagation() + } catch (n) { + e.cancelBubble = !0 + } + }), + (r.prototype.onevent = function (t, e, n) { + return 'string' != typeof t || 'function' != typeof n + ? this + : r.event(t, e, null, n) + }), + (r.prototype.event = r.event = + function (t, e, r, o) { + var a = this, + i = null, + u = (e || '').match(/\((.*)\)$/) || [], + l = (t + '.' + e).replace(u[0], ''), + c = u[1] || '', + s = function (t, e) { + var n = e && e.call(a, r) + n === !1 && null === i && (i = !1) + } + return 'LAYUI-EVENT-REMOVE' === r + ? (delete (a.cache.event[l] || {})[c], a) + : o + ? ((n.event[l] = n.event[l] || {}), + (n.event[l][c] = [o]), + this) + : (layui.each(n.event[l], function (t, e) { + return '{*}' === c + ? void layui.each(e, s) + : ('' === t && layui.each(e, s), + void (c && t === c && layui.each(e, s))) + }), + i) + }), + (r.prototype.on = function (t, e, n) { + var r = this + return r.onevent.call(r, e, t, n) + }), + (r.prototype.off = function (t, e) { + var n = this + return n.event.call(n, e, t, 'LAYUI-EVENT-REMOVE') + }), + (t.layui = new r()) +})(window) +layui.define(function (a) { + var i = layui.cache + layui.config({ dir: i.dir.replace(/lay\/dest\/$/, '') }), + a('layui.all', layui.v) +}) +!(function () { + 'use strict' + var t = 'lay', + e = window.document, + n = function (t) { + return new r(t) + }, + r = function (t) { + for ( + var n = 0, + r = + 'object' == typeof t + ? [t] + : ((this.selector = t), + e.querySelectorAll(t || null)); + n < r.length; + n++ + ) + this.push(r[n]) + } + ;(r.prototype = []), + (r.prototype.constructor = r), + (n.extend = function () { + var t = 1, + e = arguments, + n = function (t, e) { + t = t || (e.constructor === Array ? [] : {}) + for (var r in e) + t[r] = + e[r] && e[r].constructor === Object + ? n(t[r], e[r]) + : e[r] + return t + } + for (e[0] = 'object' == typeof e[0] ? e[0] : {}; t < e.length; t++) + 'object' == typeof e[t] && n(e[0], e[t]) + return e[0] + }), + (n.v = '1.0.0'), + (n.ie = (function () { + var t = navigator.userAgent.toLowerCase() + return ( + !!(window.ActiveXObject || 'ActiveXObject' in window) && + ((t.match(/msie\s(\d+)/) || [])[1] || '11') + ) + })()), + (n.getPath = function () { + var t = e.currentScript + ? e.currentScript.src + : (function () { + for ( + var t, n = e.scripts, r = n.length - 1, o = r; + o > 0; + o-- + ) + if ('interactive' === n[o].readyState) { + t = n[o].src + break + } + return t || n[r].src + })() + return t.substring(0, t.lastIndexOf('/') + 1) + }), + (n.stope = function (t) { + ;(t = t || window.event), + t.stopPropagation ? t.stopPropagation() : (t.cancelBubble = !0) + }), + (n.each = function (t, e) { + var n, + r = this + if ('function' != typeof e) return r + if (((t = t || []), t.constructor === Object)) { + for (n in t) if (e.call(t[n], n, t[n])) break + } else for (n = 0; n < t.length && !e.call(t[n], n, t[n]); n++); + return r + }), + (n.digit = function (t, e, n) { + var r = '' + ;(t = String(t)), (e = e || 2) + for (var o = t.length; o < e; o++) r += '0' + return t < Math.pow(10, e) ? r + (0 | t) : t + }), + (n.elem = function (t, r) { + var o = e.createElement(t) + return ( + n.each(r || {}, function (t, e) { + o.setAttribute(t, e) + }), + o + ) + }), + (n.getStyle = function (t, e) { + var n = t.currentStyle + ? t.currentStyle + : window.getComputedStyle(t, null) + return n[n.getPropertyValue ? 'getPropertyValue' : 'getAttribute']( + e + ) + }), + (n.link = function (t, r, o) { + var i = e.getElementsByTagName('head')[0], + c = e.createElement('link') + 'string' == typeof r && (o = r) + var u = (o || t).replace(/\.|\//g, ''), + a = 'layuicss-' + u, + s = 0 + ;(c.rel = 'stylesheet'), + (c.href = t), + (c.id = a), + e.getElementById(a) || i.appendChild(c), + 'function' == typeof r && + !(function l() { + return ++s > 80 + ? window.console && + console.error(u + '.css: Invalid') + : void (1989 === + parseInt(n.getStyle(e.getElementById(a), 'width')) + ? r() + : setTimeout(l, 100)) + })() + }), + (n.hasScrollbar = function () { + return ( + e.body.scrollHeight > + (window.innerHeight || e.documentElement.clientHeight) + ) + }), + (n.position = function (t, r, o) { + if (r) { + ;(o = o || {}), + (t !== e && t !== n('body')[0]) || (o.clickType = 'right') + var i = + 'right' === o.clickType + ? (function () { + var t = o.e || window.event || {} + return { + left: t.clientX, + top: t.clientY, + right: t.clientX, + bottom: t.clientY, + } + })() + : t.getBoundingClientRect(), + c = r.offsetWidth, + u = r.offsetHeight, + a = function (t) { + return ( + (t = t ? 'scrollLeft' : 'scrollTop'), + e.body[t] | e.documentElement[t] + ) + }, + s = function (t) { + return e.documentElement[ + t ? 'clientWidth' : 'clientHeight' + ] + }, + l = 5, + f = i.left, + h = i.bottom + f + c + l > s('width') && (f = s('width') - c - l), + h + u + l > s() && + (i.top > u + l + ? (h = i.top - u - 2 * l) + : 'right' === o.clickType && + ((h = s() - u - 2 * l), h < 0 && (h = 0))) + var p = o.position + if ( + (p && (r.style.position = p), + (r.style.left = f + ('fixed' === p ? 0 : a(1)) + 'px'), + (r.style.top = h + ('fixed' === p ? 0 : a()) + 'px'), + !n.hasScrollbar()) + ) { + var d = r.getBoundingClientRect() + !o.SYSTEM_RELOAD && + d.bottom + l > s() && + ((o.SYSTEM_RELOAD = !0), + setTimeout(function () { + n.position(t, r, o) + }, 50)) + } + } + }), + (n.options = function (t, e) { + var r = n(t), + o = e || 'lay-options' + try { + return new Function('return ' + (r.attr(o) || '{}'))() + } catch (i) { + return hint.error('parseerror:' + i, 'error'), {} + } + }), + (n.isTopElem = function (t) { + var r = [e, n('body')[0]], + o = !1 + return ( + n.each(r, function (e, n) { + if (n === t) return (o = !0) + }), + o + ) + }), + (r.addStr = function (t, e) { + return ( + (t = t.replace(/\s+/, ' ')), + (e = e.replace(/\s+/, ' ').split(' ')), + n.each(e, function (e, n) { + new RegExp('\\b' + n + '\\b').test(t) || (t = t + ' ' + n) + }), + t.replace(/^\s|\s$/, '') + ) + }), + (r.removeStr = function (t, e) { + return ( + (t = t.replace(/\s+/, ' ')), + (e = e.replace(/\s+/, ' ').split(' ')), + n.each(e, function (e, n) { + var r = new RegExp('\\b' + n + '\\b') + r.test(t) && (t = t.replace(r, '')) + }), + t.replace(/\s+/, ' ').replace(/^\s|\s$/, '') + ) + }), + (r.prototype.find = function (t) { + var e = this, + r = 0, + o = [], + i = 'object' == typeof t + return ( + this.each(function (n, c) { + for ( + var u = i ? [t] : c.querySelectorAll(t || null); + r < u.length; + r++ + ) + o.push(u[r]) + e.shift() + }), + i || (e.selector = (e.selector ? e.selector + ' ' : '') + t), + n.each(o, function (t, n) { + e.push(n) + }), + e + ) + }), + (r.prototype.each = function (t) { + return n.each.call(this, this, t) + }), + (r.prototype.addClass = function (t, e) { + return this.each(function (n, o) { + o.className = r[e ? 'removeStr' : 'addStr'](o.className, t) + }) + }), + (r.prototype.removeClass = function (t) { + return this.addClass(t, !0) + }), + (r.prototype.hasClass = function (t) { + var e = !1 + return ( + this.each(function (n, r) { + new RegExp('\\b' + t + '\\b').test(r.className) && (e = !0) + }), + e + ) + }), + (r.prototype.css = function (t, e) { + var r = this, + o = function (t) { + return isNaN(t) ? t : t + 'px' + } + return 'string' == typeof t && void 0 === e + ? (function () { + if (r.length > 0) return r[0].style[t] + })() + : r.each(function (r, i) { + 'object' == typeof t + ? n.each(t, function (t, e) { + i.style[t] = o(e) + }) + : (i.style[t] = o(e)) + }) + }), + (r.prototype.width = function (t) { + var e = this + return void 0 === t + ? (function () { + if (e.length > 0) return e[0].offsetWidth + })() + : e.each(function (n, r) { + e.css('width', t) + }) + }), + (r.prototype.height = function (t) { + var e = this + return void 0 === t + ? (function () { + if (e.length > 0) return e[0].offsetHeight + })() + : e.each(function (n, r) { + e.css('height', t) + }) + }), + (r.prototype.attr = function (t, e) { + var n = this + return void 0 === e + ? (function () { + if (n.length > 0) return n[0].getAttribute(t) + })() + : n.each(function (n, r) { + r.setAttribute(t, e) + }) + }), + (r.prototype.removeAttr = function (t) { + return this.each(function (e, n) { + n.removeAttribute(t) + }) + }), + (r.prototype.html = function (t) { + var e = this + return void 0 === t + ? (function () { + if (e.length > 0) return e[0].innerHTML + })() + : this.each(function (e, n) { + n.innerHTML = t + }) + }), + (r.prototype.val = function (t) { + return void 0 === t + ? (function () { + if (that.length > 0) return that[0].value + })() + : this.each(function (e, n) { + n.value = t + }) + }), + (r.prototype.append = function (t) { + return this.each(function (e, n) { + 'object' == typeof t + ? n.appendChild(t) + : (n.innerHTML = n.innerHTML + t) + }) + }), + (r.prototype.remove = function (t) { + return this.each(function (e, n) { + t ? n.removeChild(t) : n.parentNode.removeChild(n) + }) + }), + (r.prototype.on = function (t, e) { + return this.each(function (n, r) { + r.attachEvent + ? r.attachEvent('on' + t, function (t) { + ;(t.target = t.srcElement), e.call(r, t) + }) + : r.addEventListener(t, e, !1) + }) + }), + (r.prototype.off = function (t, e) { + return this.each(function (n, r) { + r.detachEvent + ? r.detachEvent('on' + t, e) + : r.removeEventListener(t, e, !1) + }) + }), + (window.lay = n), + window.layui && + layui.define && + layui.define(function (e) { + e(t, n) + }) +})() +layui.define(function (e) { + 'use strict' + var r = { open: '{{', close: '}}' }, + c = { + exp: function (e) { + return new RegExp(e, 'g') + }, + query: function (e, c, t) { + var o = ['#([\\s\\S])+?', '([^{#}])*?'][e || 0] + return n((c || '') + r.open + o + r.close + (t || '')) + }, + escape: function (e) { + return String(e || '') + .replace(/&(?!#?[a-zA-Z0-9]+;)/g, '&') + .replace(//g, '>') + .replace(/'/g, ''') + .replace(/"/g, '"') + }, + error: function (e, r) { + var c = 'Laytpl Error: ' + return ( + 'object' == typeof console && + console.error(c + e + '\n' + (r || '')), + c + e + ) + }, + }, + n = c.exp, + t = function (e) { + this.tpl = e + } + ;(t.pt = t.prototype), + (window.errors = 0), + (t.pt.parse = function (e, t) { + var o = this, + p = e, + a = n('^' + r.open + '#', ''), + l = n(r.close + '$', '') + ;(e = e + .replace(/\s+|\r|\t|\n/g, ' ') + .replace(n(r.open + '#'), r.open + '# ') + .replace(n(r.close + '}'), '} ' + r.close) + .replace(/\\/g, '\\\\') + .replace(n(r.open + '!(.+?)!' + r.close), function (e) { + return (e = e + .replace(n('^' + r.open + '!'), '') + .replace(n('!' + r.close), '') + .replace(n(r.open + '|' + r.close), function (e) { + return e.replace(/(.)/g, '\\$1') + })) + }) + .replace(/(?="|')/g, '\\') + .replace(c.query(), function (e) { + return ( + (e = e.replace(a, '').replace(l, '')), + '";' + e.replace(/\\/g, '') + ';view+="' + ) + }) + .replace(c.query(1), function (e) { + var c = '"+(' + return e.replace(/\s/g, '') === r.open + r.close + ? '' + : ((e = e.replace(n(r.open + '|' + r.close), '')), + /^=/.test(e) && + ((e = e.replace(/^=/, '')), + (c = '"+_escape_(')), + c + e.replace(/\\/g, '') + ')+"') + })), + (e = '"use strict";var view = "' + e + '";return view;') + try { + return ( + (o.cache = e = new Function('d, _escape_', e)), + e(t, c.escape) + ) + } catch (u) { + return delete o.cache, c.error(u, p) + } + }), + (t.pt.render = function (e, r) { + var n, + t = this + return e + ? ((n = t.cache ? t.cache(e, c.escape) : t.parse(t.tpl, e)), + r ? void r(n) : n) + : c.error('no data') + }) + var o = function (e) { + return 'string' != typeof e ? c.error('Template not found') : new t(e) + } + ;(o.config = function (e) { + e = e || {} + for (var c in e) r[c] = e[c] + }), + (o.v = '1.2.0'), + e('laytpl', o) +}) +layui.define(function (e) { + 'use strict' + var a = document, + t = 'getElementById', + n = 'getElementsByTagName', + i = 'laypage', + r = 'layui-disabled', + u = function (e) { + var a = this + ;(a.config = e || {}), (a.config.index = ++s.index), a.render(!0) + } + ;(u.prototype.type = function () { + var e = this.config + if ('object' == typeof e.elem) return void 0 === e.elem.length ? 2 : 3 + }), + (u.prototype.view = function () { + var e = this, + a = e.config, + t = (a.groups = 'groups' in a ? 0 | a.groups : 5) + ;(a.layout = + 'object' == typeof a.layout + ? a.layout + : ['prev', 'page', 'next']), + (a.count = 0 | a.count), + (a.curr = 0 | a.curr || 1), + (a.limits = + 'object' == typeof a.limits + ? a.limits + : [10, 20, 30, 40, 50]), + (a.limit = 0 | a.limit || 10), + (a.pages = Math.ceil(a.count / a.limit) || 1), + a.curr > a.pages && (a.curr = a.pages), + t < 0 ? (t = 1) : t > a.pages && (t = a.pages), + (a.prev = 'prev' in a ? a.prev : '上一页'), + (a.next = 'next' in a ? a.next : '下一页') + var n = + a.pages > t + ? Math.ceil( + (a.curr + (t > 1 ? 1 : 0)) / (t > 0 ? t : 1) + ) + : 1, + i = { + prev: (function () { + return a.prev + ? '' + + a.prev + + '' + : '' + })(), + page: (function () { + var e = [] + if (a.count < 1) return '' + n > 1 && + a.first !== !1 && + 0 !== t && + e.push( + '' + + (a.first || 1) + + '' + ) + var i = Math.floor((t - 1) / 2), + r = n > 1 ? a.curr - i : 1, + u = + n > 1 + ? (function () { + var e = a.curr + (t - i - 1) + return e > a.pages ? a.pages : e + })() + : t + for ( + u - r < t - 1 && (r = u - t + 1), + a.first !== !1 && + r > 2 && + e.push( + '' + ); + r <= u; + r++ + ) + r === a.curr + ? e.push( + '' + + r + + '' + ) + : e.push( + '' + + r + + '' + ) + return ( + a.pages > t && + a.pages > u && + a.last !== !1 && + (u + 1 < a.pages && + e.push( + '' + ), + 0 !== t && + e.push( + '' + + (a.last || a.pages) + + '' + )), + e.join('') + ) + })(), + next: (function () { + return a.next + ? '' + + a.next + + '' + : '' + })(), + count: + '共 ' + + a.count + + ' 条', + limit: (function () { + var e = [ + '' + ) + })(), + refresh: [ + '', + '', + '', + ].join(''), + skip: (function () { + return [ + '到第', + '', + '页', + '', + ].join('') + })(), + } + return [ + '
', + (function () { + var e = [] + return ( + layui.each(a.layout, function (a, t) { + i[t] && e.push(i[t]) + }), + e.join('') + ) + })(), + '
', + ].join('') + }), + (u.prototype.jump = function (e, a) { + if (e) { + var t = this, + i = t.config, + r = e.children, + u = e[n]('button')[0], + l = e[n]('input')[0], + p = e[n]('select')[0], + c = function () { + var e = 0 | l.value.replace(/\s|\D/g, '') + e && ((i.curr = e), t.render()) + } + if (a) return c() + for (var o = 0, y = r.length; o < y; o++) + 'a' === r[o].nodeName.toLowerCase() && + s.on(r[o], 'click', function () { + var e = 0 | this.getAttribute('data-page') + e < 1 || e > i.pages || ((i.curr = e), t.render()) + }) + p && + s.on(p, 'change', function () { + var e = this.value + i.curr * e > i.count && + (i.curr = Math.ceil(i.count / e)), + (i.limit = e), + t.render() + }), + u && + s.on(u, 'click', function () { + c() + }) + } + }), + (u.prototype.skip = function (e) { + if (e) { + var a = this, + t = e[n]('input')[0] + t && + s.on(t, 'keyup', function (t) { + var n = this.value, + i = t.keyCode + ;/^(37|38|39|40)$/.test(i) || + (/\D/.test(n) && (this.value = n.replace(/\D/, '')), + 13 === i && a.jump(e, !0)) + }) + } + }), + (u.prototype.render = function (e) { + var n = this, + i = n.config, + r = n.type(), + u = n.view() + 2 === r + ? i.elem && (i.elem.innerHTML = u) + : 3 === r + ? i.elem.html(u) + : a[t](i.elem) && (a[t](i.elem).innerHTML = u), + i.jump && i.jump(i, e) + var s = a[t]('layui-laypage-' + i.index) + n.jump(s), + i.hash && !e && (location.hash = '!' + i.hash + '=' + i.curr), + n.skip(s) + }) + var s = { + render: function (e) { + var a = new u(e) + return a.index + }, + index: layui.laypage ? layui.laypage.index + 1e4 : 0, + on: function (e, a, t) { + return ( + e.attachEvent + ? e.attachEvent('on' + a, function (a) { + ;(a.target = a.srcElement), t.call(e, a) + }) + : e.addEventListener(a, t, !1), + this + ) + }, + } + e(i, s) +}) +!(function (e) { + 'use strict' + var t = e.layui && layui.define, + a = { + getPath: e.lay && lay.getPath ? lay.getPath() : '', + link: function (t, a, l) { + n.path && e.lay && lay.link && lay.link(n.path + t, a, l) + }, + }, + n = { + v: '5.2.1', + config: {}, + index: e.laydate && e.laydate.v ? 1e5 : 0, + path: a.getPath, + set: function (e) { + var t = this + return (t.config = lay.extend({}, t.config, e)), t + }, + ready: function (e) { + var l = 'laydate', + i = '', + r = + (t ? 'modules/laydate/' : 'theme/') + + 'default/laydate.css?v=' + + n.v + + i + return t ? layui.addcss(r, e, l) : a.link(r, e, l), this + }, + }, + l = function () { + var e = this + return { + hint: function (t) { + e.hint.call(e, t) + }, + config: e.config, + } + }, + i = 'laydate', + r = '.layui-laydate', + o = 'layui-this', + s = 'laydate-disabled', + y = [100, 2e5], + d = 'layui-laydate-static', + m = 'layui-laydate-list', + c = 'laydate-selected', + u = 'layui-laydate-hint', + h = 'layui-laydate-footer', + f = '.laydate-btns-confirm', + p = 'laydate-time-text', + g = '.laydate-btns-time', + v = function (e) { + var t = this + ;(t.index = ++n.index), + (t.config = lay.extend({}, t.config, n.config, e)), + n.ready(function () { + t.init() + }) + } + ;(v.isLeapYear = function (e) { + return (e % 4 === 0 && e % 100 !== 0) || e % 400 === 0 + }), + (v.prototype.config = { + type: 'date', + range: !1, + format: 'yyyy-MM-dd', + value: null, + isInitValue: !0, + min: '1900-1-1', + max: '2099-12-31', + trigger: 'click', + show: !1, + showBottom: !0, + btns: ['clear', 'now', 'confirm'], + lang: 'cn', + theme: 'default', + position: null, + calendar: !1, + mark: {}, + zIndex: null, + done: null, + change: null, + }), + (v.prototype.lang = function () { + var e = this, + t = e.config, + a = { + cn: { + weeks: ['日', '一', '二', '三', '四', '五', '六'], + time: ['时', '分', '秒'], + timeTips: '选择时间', + startTime: '开始时间', + endTime: '结束时间', + dateTips: '返回日期', + month: [ + '一', + '二', + '三', + '四', + '五', + '六', + '七', + '八', + '九', + '十', + '十一', + '十二', + ], + tools: { confirm: '确定', clear: '清空', now: '现在' }, + timeout: '结束时间不能早于开始时间
请重新选择', + invalidDate: '不在有效日期或时间范围内', + formatError: [ + '日期格式不合法
必须遵循下述格式:
', + '
已为你重置', + ], + }, + en: { + weeks: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], + time: ['Hours', 'Minutes', 'Seconds'], + timeTips: 'Select Time', + startTime: 'Start Time', + endTime: 'End Time', + dateTips: 'Select Date', + month: [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec', + ], + tools: { + confirm: 'Confirm', + clear: 'Clear', + now: 'Now', + }, + timeout: + 'End time cannot be less than start Time
Please re-select', + invalidDate: 'Invalid date', + formatError: [ + 'The date format error
Must be followed:
', + '
It has been reset', + ], + }, + } + return a[t.lang] || a.cn + }), + (v.prototype.init = function () { + var t = this, + a = t.config, + n = 'yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s', + l = 'static' === a.position, + i = { + year: 'yyyy', + month: 'yyyy-MM', + date: 'yyyy-MM-dd', + time: 'HH:mm:ss', + datetime: 'yyyy-MM-dd HH:mm:ss', + } + ;(a.elem = lay(a.elem)), + (a.eventElem = lay(a.eventElem)), + a.elem[0] && + (a.range === !0 && (a.range = '-'), + i[a.type] || + (e.console && + console.error && + console.error( + "laydate type error:'" + + a.type + + "' is not supported" + ), + (a.type = 'date')), + a.format === i.date && (a.format = i[a.type] || i.date), + (t.format = + a.format.match(new RegExp(n + '|.', 'g')) || []), + (t.EXP_IF = ''), + (t.EXP_SPLIT = ''), + lay.each(t.format, function (e, a) { + var l = new RegExp(n).test(a) + ? '\\d{' + + (function () { + return new RegExp(n).test( + t.format[0 === e ? e + 1 : e - 1] || '' + ) + ? /^yyyy|y$/.test(a) + ? 4 + : a.length + : /^yyyy$/.test(a) + ? '1,4' + : /^y$/.test(a) + ? '1,308' + : '1,2' + })() + + '}' + : '\\' + a + ;(t.EXP_IF = t.EXP_IF + l), + (t.EXP_SPLIT = t.EXP_SPLIT + '(' + l + ')') + }), + (t.EXP_IF = new RegExp( + '^' + + (a.range + ? t.EXP_IF + + '\\s\\' + + a.range + + '\\s' + + t.EXP_IF + : t.EXP_IF) + + '$' + )), + (t.EXP_SPLIT = new RegExp('^' + t.EXP_SPLIT + '$', '')), + t.isInput(a.elem[0]) || + ('focus' === a.trigger && (a.trigger = 'click')), + a.elem.attr('lay-key') || + (a.elem.attr('lay-key', t.index), + a.eventElem.attr('lay-key', t.index)), + (a.mark = lay.extend( + {}, + a.calendar && 'cn' === a.lang + ? { + '0-1-1': '元旦', + '0-2-14': '情人', + '0-3-8': '妇女', + '0-3-12': '植树', + '0-4-1': '愚人', + '0-5-1': '劳动', + '0-5-4': '青年', + '0-6-1': '儿童', + '0-9-10': '教师', + '0-9-18': '国耻', + '0-10-1': '国庆', + '0-12-25': '圣诞', + } + : {}, + a.mark + )), + lay.each(['min', 'max'], function (e, t) { + var n = [], + l = [] + if ('number' == typeof a[t]) { + var i = a[t], + r = new Date().getTime(), + o = 864e5, + s = new Date(i ? (i < o ? r + i * o : i) : r) + ;(n = [ + s.getFullYear(), + s.getMonth() + 1, + s.getDate(), + ]), + i < o || + (l = [ + s.getHours(), + s.getMinutes(), + s.getSeconds(), + ]) + } else (n = (a[t].match(/\d+-\d+-\d+/) || [''])[0].split('-')), (l = (a[t].match(/\d+:\d+:\d+/) || [''])[0].split(':')) + a[t] = { + year: 0 | n[0] || new Date().getFullYear(), + month: n[1] + ? (0 | n[1]) - 1 + : new Date().getMonth(), + date: 0 | n[2] || new Date().getDate(), + hours: 0 | l[0], + minutes: 0 | l[1], + seconds: 0 | l[2], + } + }), + (t.elemID = 'layui-laydate' + a.elem.attr('lay-key')), + (a.show || l) && t.render(), + l || t.events(), + a.value && + a.isInitValue && + (a.value.constructor === Date + ? t.setValue(t.parse(0, t.systemDate(a.value))) + : t.setValue(a.value))) + }), + (v.prototype.render = function () { + var e = this, + t = e.config, + a = e.lang(), + n = 'static' === t.position, + l = (e.elem = lay.elem('div', { + id: e.elemID, + class: [ + 'layui-laydate', + t.range ? ' layui-laydate-range' : '', + n ? ' ' + d : '', + t.theme && 'default' !== t.theme && !/^#/.test(t.theme) + ? ' laydate-theme-' + t.theme + : '', + ].join(''), + })), + i = (e.elemMain = []), + r = (e.elemHeader = []), + o = (e.elemCont = []), + s = (e.table = []), + y = (e.footer = lay.elem('div', { class: h })) + if ( + (t.zIndex && (l.style.zIndex = t.zIndex), + lay.each(new Array(2), function (e) { + if (!t.range && e > 0) return !0 + var n = lay.elem('div', { class: 'layui-laydate-header' }), + l = [ + (function () { + var e = lay.elem('i', { + class: 'layui-icon laydate-icon laydate-prev-y', + }) + return (e.innerHTML = ''), e + })(), + (function () { + var e = lay.elem('i', { + class: 'layui-icon laydate-icon laydate-prev-m', + }) + return (e.innerHTML = ''), e + })(), + (function () { + var e = lay.elem('div', { + class: 'laydate-set-ym', + }), + t = lay.elem('span'), + a = lay.elem('span') + return e.appendChild(t), e.appendChild(a), e + })(), + (function () { + var e = lay.elem('i', { + class: 'layui-icon laydate-icon laydate-next-m', + }) + return (e.innerHTML = ''), e + })(), + (function () { + var e = lay.elem('i', { + class: 'layui-icon laydate-icon laydate-next-y', + }) + return (e.innerHTML = ''), e + })(), + ], + y = lay.elem('div', { class: 'layui-laydate-content' }), + d = lay.elem('table'), + m = lay.elem('thead'), + c = lay.elem('tr') + lay.each(l, function (e, t) { + n.appendChild(t) + }), + m.appendChild(c), + lay.each(new Array(6), function (e) { + var t = d.insertRow(0) + lay.each(new Array(7), function (n) { + if (0 === e) { + var l = lay.elem('th') + ;(l.innerHTML = a.weeks[n]), + c.appendChild(l) + } + t.insertCell(n) + }) + }), + d.insertBefore(m, d.children[0]), + y.appendChild(d), + (i[e] = lay.elem('div', { + class: 'layui-laydate-main laydate-main-list-' + e, + })), + i[e].appendChild(n), + i[e].appendChild(y), + r.push(l), + o.push(y), + s.push(d) + }), + lay(y).html( + (function () { + var e = [], + l = [] + return ( + 'datetime' === t.type && + e.push( + '' + + a.timeTips + + '' + ), + lay.each(t.btns, function (e, i) { + var r = a.tools[i] || 'btn' + ;(t.range && 'now' === i) || + (n && + 'clear' === i && + (r = + 'cn' === t.lang ? '重置' : 'Reset'), + l.push( + '' + + r + + '' + )) + }), + e.push( + '' + ), + e.join('') + ) + })() + ), + lay.each(i, function (e, t) { + l.appendChild(t) + }), + t.showBottom && l.appendChild(y), + /^#/.test(t.theme)) + ) { + var m = lay.elem('style'), + c = [ + '#{{id}} .layui-laydate-header{background-color:{{theme}};}', + '#{{id}} .layui-this{background-color:{{theme}} !important;}', + ] + .join('') + .replace(/{{id}}/g, e.elemID) + .replace(/{{theme}}/g, t.theme) + 'styleSheet' in m + ? (m.setAttribute('type', 'text/css'), + (m.styleSheet.cssText = c)) + : (m.innerHTML = c), + lay(l).addClass('laydate-theme-molv'), + l.appendChild(m) + } + e.remove(v.thisElemDate), + n + ? t.elem.append(l) + : (document.body.appendChild(l), e.position()), + e.checkDate().calendar(null, 0, 'init'), + e.changeEvent(), + (v.thisElemDate = e.elemID), + 'function' == typeof t.ready && + t.ready( + lay.extend({}, t.dateTime, { + month: t.dateTime.month + 1, + }) + ) + }), + (v.prototype.remove = function (e) { + var t = this, + a = (t.config, lay('#' + (e || t.elemID))) + return a[0] + ? (a.hasClass(d) || + t.checkDate(function () { + a.remove(), delete t.endDate + }), + t) + : t + }), + (v.prototype.position = function () { + var e = this, + t = e.config + return ( + lay.position(e.bindElem || t.elem[0], e.elem, { + position: t.position, + }), + e + ) + }), + (v.prototype.hint = function (e) { + var t = this, + a = (t.config, lay.elem('div', { class: u })) + t.elem && + ((a.innerHTML = e || ''), + lay(t.elem) + .find('.' + u) + .remove(), + t.elem.appendChild(a), + clearTimeout(t.hinTimer), + (t.hinTimer = setTimeout(function () { + lay(t.elem) + .find('.' + u) + .remove() + }, 3e3))) + }), + (v.prototype.getAsYM = function (e, t, a) { + return ( + a ? t-- : t++, + t < 0 && ((t = 11), e--), + t > 11 && ((t = 0), e++), + [e, t] + ) + }), + (v.prototype.systemDate = function (e) { + var t = e || new Date() + return { + year: t.getFullYear(), + month: t.getMonth(), + date: t.getDate(), + hours: e ? e.getHours() : 0, + minutes: e ? e.getMinutes() : 0, + seconds: e ? e.getSeconds() : 0, + } + }), + (v.prototype.checkDate = function (e) { + var t, + a, + l = this, + i = (new Date(), l.config), + r = l.lang(), + o = (i.dateTime = i.dateTime || l.systemDate()), + s = l.bindElem || i.elem[0], + d = + (l.isInput(s) ? 'val' : 'html', + l.isInput(s) + ? s.value + : 'static' === i.position + ? '' + : s.innerHTML), + m = function (e) { + e.year > y[1] && ((e.year = y[1]), (a = !0)), + e.month > 11 && ((e.month = 11), (a = !0)), + e.hours > 23 && ((e.hours = 0), (a = !0)), + e.minutes > 59 && + ((e.minutes = 0), e.hours++, (a = !0)), + e.seconds > 59 && + ((e.seconds = 0), e.minutes++, (a = !0)), + (t = n.getEndDate(e.month + 1, e.year)), + e.date > t && ((e.date = t), (a = !0)) + }, + c = function (e, t, n) { + var r = ['startTime', 'endTime'] + ;(t = (t.match(l.EXP_SPLIT) || []).slice(1)), + (n = n || 0), + i.range && (l[r[n]] = l[r[n]] || {}), + lay.each(l.format, function (o, s) { + var d = parseFloat(t[o]) + t[o].length < s.length && (a = !0), + /yyyy|y/.test(s) + ? (d < y[0] && ((d = y[0]), (a = !0)), + (e.year = d)) + : /MM|M/.test(s) + ? (d < 1 && ((d = 1), (a = !0)), + (e.month = d - 1)) + : /dd|d/.test(s) + ? (d < 1 && ((d = 1), (a = !0)), + (e.date = d)) + : /HH|H/.test(s) + ? (d < 1 && ((d = 0), (a = !0)), + (e.hours = d), + i.range && (l[r[n]].hours = d)) + : /mm|m/.test(s) + ? (d < 1 && ((d = 0), (a = !0)), + (e.minutes = d), + i.range && (l[r[n]].minutes = d)) + : /ss|s/.test(s) && + (d < 1 && ((d = 0), (a = !0)), + (e.seconds = d), + i.range && (l[r[n]].seconds = d)) + }), + m(e) + } + return 'limit' === e + ? (m(o), l) + : ((d = d || i.value), + 'string' == typeof d && + (d = d.replace(/\s+/g, ' ').replace(/^\s|\s$/g, '')), + i.range && + (l.endDate = + l.endDate || + lay.extend( + {}, + o, + (function () { + var e = {}, + t = l.getAsYM(o.year, o.month) + return ( + 'year' === i.type + ? (e.year = o.year + 1) + : 'time' !== i.type && + ((e.year = t[0]), + (e.month = t[1])), + e + ) + })() + )), + 'string' == typeof d && d + ? l.EXP_IF.test(d) + ? i.range + ? ((d = d.split(' ' + i.range + ' ')), + lay.each( + [i.dateTime, l.endDate], + function (e, t) { + c(t, d[e], e) + } + )) + : c(o, d) + : (l.hint( + r.formatError[0] + + (i.range + ? i.format + + ' ' + + i.range + + ' ' + + i.format + : i.format) + + r.formatError[1] + ), + (a = !0)) + : d && d.constructor === Date + ? (i.dateTime = l.systemDate(d)) + : ((i.dateTime = l.systemDate()), + delete l.startTime, + delete l.endTime), + m(o), + a && + d && + l.setValue( + i.range ? (l.endDate ? l.parse() : '') : l.parse() + ), + e && e(), + l) + }), + (v.prototype.mark = function (e, t) { + var a, + n = this, + l = n.config + return ( + lay.each(l.mark, function (e, n) { + var l = e.split('-') + ;(l[0] != t[0] && 0 != l[0]) || + (l[1] != t[1] && 0 != l[1]) || + l[2] != t[2] || + (a = n || t[2]) + }), + a && e.html('' + a + ''), + n + ) + }), + (v.prototype.limit = function (e, t, a, n) { + var l, + i = this, + r = i.config, + o = {}, + y = r[a > 41 ? 'endDate' : 'dateTime'], + d = lay.extend({}, y, t || {}) + return ( + lay.each({ now: d, min: r.min, max: r.max }, function (e, t) { + o[e] = i + .newDate( + lay.extend( + { year: t.year, month: t.month, date: t.date }, + (function () { + var e = {} + return ( + lay.each(n, function (a, n) { + e[n] = t[n] + }), + e + ) + })() + ) + ) + .getTime() + }), + (l = o.now < o.min || o.now > o.max), + e && e[l ? 'addClass' : 'removeClass'](s), + l + ) + }), + (v.prototype.thisDateTime = function (e) { + var t = this, + a = t.config + return e ? t.endDate : a.dateTime + }), + (v.prototype.calendar = function (e, t, a) { + var l, + i, + r, + s = this, + d = s.config, + t = t ? 1 : 0, + m = e || s.thisDateTime(t), + c = new Date(), + u = s.lang(), + h = 'date' !== d.type && 'datetime' !== d.type, + p = lay(s.table[t]).find('td'), + g = lay(s.elemHeader[t][2]).find('span') + return ( + m.year < y[0] && ((m.year = y[0]), s.hint(u.invalidDate)), + m.year > y[1] && ((m.year = y[1]), s.hint(u.invalidDate)), + s.firstDate || (s.firstDate = lay.extend({}, m)), + c.setFullYear(m.year, m.month, 1), + (l = c.getDay()), + (i = n.getEndDate(m.month || 12, m.year)), + (r = n.getEndDate(m.month + 1, m.year)), + lay.each(p, function (e, t) { + var a = [m.year, m.month], + n = 0 + ;(t = lay(t)), + t.removeAttr('class'), + e < l + ? ((n = i - l + e), + t.addClass('laydate-day-prev'), + (a = s.getAsYM(m.year, m.month, 'sub'))) + : e >= l && e < r + l + ? ((n = e - l), n + 1 === m.date && t.addClass(o)) + : ((n = e - r - l), + t.addClass('laydate-day-next'), + (a = s.getAsYM(m.year, m.month))), + a[1]++, + (a[2] = n + 1), + t.attr('lay-ymd', a.join('-')).html(a[2]), + s + .mark(t, a) + .limit( + t, + { year: a[0], month: a[1] - 1, date: a[2] }, + e + ) + }), + lay(g[0]).attr('lay-ym', m.year + '-' + (m.month + 1)), + lay(g[1]).attr('lay-ym', m.year + '-' + (m.month + 1)), + 'cn' === d.lang + ? (lay(g[0]) + .attr('lay-type', 'year') + .html(m.year + '年'), + lay(g[1]) + .attr('lay-type', 'month') + .html(m.month + 1 + '月')) + : (lay(g[0]) + .attr('lay-type', 'month') + .html(u.month[m.month]), + lay(g[1]).attr('lay-type', 'year').html(m.year)), + h && + (d.range + ? e && + ((s.listYM = [ + [d.dateTime.year, d.dateTime.month + 1], + [s.endDate.year, s.endDate.month + 1], + ]), + s.list(d.type, 0).list(d.type, 1), + 'time' === d.type + ? s.setBtnStatus( + '时间', + lay.extend( + {}, + s.systemDate(), + s.startTime + ), + lay.extend( + {}, + s.systemDate(), + s.endTime + ) + ) + : s.setBtnStatus(!0)) + : ((s.listYM = [[m.year, m.month + 1]]), + s.list(d.type, 0))), + d.range && 'init' === a && !e && s.calendar(s.endDate, 1), + d.range || + s.limit(lay(s.footer).find(f), null, 0, [ + 'hours', + 'minutes', + 'seconds', + ]), + s.setBtnStatus(), + s.stampRange(t, p), + s + ) + }), + (v.prototype.list = function (e, t) { + var a = this, + n = a.config, + l = n.dateTime, + i = a.lang(), + r = n.range && 'date' !== n.type && 'datetime' !== n.type, + y = lay.elem('ul', { + class: + m + + ' ' + + { + year: 'laydate-year-list', + month: 'laydate-month-list', + time: 'laydate-time-list', + }[e], + }), + d = a.elemHeader[t], + c = lay(d[2]).find('span'), + u = a.elemCont[t || 0], + h = lay(u).find('.' + m)[0], + v = 'cn' === n.lang, + T = v ? '年' : '', + D = a.listYM[t] || {}, + M = ['hours', 'minutes', 'seconds'], + x = ['startTime', 'endTime'][t] + if ((D[0] < 1 && (D[0] = 1), 'year' === e)) { + var C, + w = (C = D[0] - 7) + w < 1 && (w = C = 1), + lay.each(new Array(15), function (e) { + var l = lay.elem('li', { 'lay-ym': C }), + i = { year: C } + C == D[0] && lay(l).addClass(o), + (l.innerHTML = C + T), + y.appendChild(l), + C < a.firstDate.year + ? ((i.month = n.min.month), + (i.date = n.min.date)) + : C >= a.firstDate.year && + ((i.month = n.max.month), + (i.date = n.max.date)), + a.limit(lay(l), i, t), + C++ + }), + lay(c[v ? 0 : 1]) + .attr('lay-ym', C - 8 + '-' + D[1]) + .html(w + T + ' - ' + (C - 1 + T)) + } else if ('month' === e) + lay.each(new Array(12), function (e) { + var l = lay.elem('li', { 'lay-ym': e }), + r = { year: D[0], month: e } + e + 1 == D[1] && lay(l).addClass(o), + (l.innerHTML = i.month[e] + (v ? '月' : '')), + y.appendChild(l), + D[0] < a.firstDate.year + ? (r.date = n.min.date) + : D[0] >= a.firstDate.year && (r.date = n.max.date), + a.limit(lay(l), r, t) + }), + lay(c[v ? 0 : 1]) + .attr('lay-ym', D[0] + '-' + D[1]) + .html(D[0] + T) + else if ('time' === e) { + var k = function () { + lay(y) + .find('ol') + .each(function (e, n) { + lay(n) + .find('li') + .each(function (n, l) { + a.limit( + lay(l), + [ + { hours: n }, + { hours: a[x].hours, minutes: n }, + { + hours: a[x].hours, + minutes: a[x].minutes, + seconds: n, + }, + ][e], + t, + [ + ['hours'], + ['hours', 'minutes'], + ['hours', 'minutes', 'seconds'], + ][e] + ) + }) + }), + n.range || + a.limit(lay(a.footer).find(f), a[x], 0, [ + 'hours', + 'minutes', + 'seconds', + ]) + } + n.range + ? a[x] || (a[x] = { hours: 0, minutes: 0, seconds: 0 }) + : (a[x] = l), + lay.each([24, 60, 60], function (e, t) { + var n = lay.elem('li'), + l = ['

' + i.time[e] + '

    '] + lay.each(new Array(t), function (t) { + l.push( + '' + + lay.digit(t, 2) + + '' + ) + }), + (n.innerHTML = l.join('') + '
'), + y.appendChild(n) + }), + k() + } + if ( + (h && u.removeChild(h), + u.appendChild(y), + 'year' === e || 'month' === e) + ) + lay(a.elemMain[t]).addClass('laydate-ym-show'), + lay(y) + .find('li') + .on('click', function () { + var i = 0 | lay(this).attr('lay-ym') + if (!lay(this).hasClass(s)) { + 0 === t + ? ((l[e] = i), + a.limit(lay(a.footer).find(f), null, 0)) + : (a.endDate[e] = i) + var d = 'year' === n.type || 'month' === n.type + d + ? (lay(y) + .find('.' + o) + .removeClass(o), + lay(this).addClass(o), + 'month' === n.type && + 'year' === e && + ((a.listYM[t][0] = i), + r && + (t + ? (l.year = i) + : (a.endDate.year = i)), + a.list('month', t))) + : (a.checkDate('limit').calendar(null, t), + a.closeList()), + a.setBtnStatus(), + n.range || + ((('month' === n.type && + 'month' === e) || + ('year' === n.type && + 'year' === e)) && + a + .setValue(a.parse()) + .remove() + .done(), + a.done(null, 'change')), + lay(a.footer).find(g).removeClass(s) + } + }) + else { + var E = lay.elem('span', { class: p }), + b = function () { + lay(y) + .find('ol') + .each(function (e) { + var t = this, + n = lay(t).find('li') + ;(t.scrollTop = 30 * (a[x][M[e]] - 2)), + t.scrollTop <= 0 && + n.each(function (e, a) { + if (!lay(this).hasClass(s)) + return ( + (t.scrollTop = + 30 * (e - 2)), + !0 + ) + }) + }) + }, + H = lay(d[2]).find('.' + p) + b(), + (E.innerHTML = n.range + ? [i.startTime, i.endTime][t] + : i.timeTips), + lay(a.elemMain[t]).addClass('laydate-time-show'), + H[0] && H.remove(), + d[2].appendChild(E), + lay(y) + .find('ol') + .each(function (e) { + var t = this + lay(t) + .find('li') + .on('click', function () { + var i = 0 | this.innerHTML + lay(this).hasClass(s) || + (n.range + ? (a[x][M[e]] = i) + : (l[M[e]] = i), + lay(t) + .find('.' + o) + .removeClass(o), + lay(this).addClass(o), + k(), + b(), + (a.endDate || 'time' === n.type) && + a.done(null, 'change'), + a.setBtnStatus()) + }) + }) + } + return a + }), + (v.prototype.listYM = []), + (v.prototype.closeList = function () { + var e = this + e.config + lay.each(e.elemCont, function (t, a) { + lay(this) + .find('.' + m) + .remove(), + lay(e.elemMain[t]).removeClass( + 'laydate-ym-show laydate-time-show' + ) + }), + lay(e.elem) + .find('.' + p) + .remove() + }), + (v.prototype.setBtnStatus = function (e, t, a) { + var n, + l = this, + i = l.config, + r = l.lang(), + o = lay(l.footer).find(f) + i.range && + 'time' !== i.type && + ((t = t || i.dateTime), + (a = a || l.endDate), + (n = l.newDate(t).getTime() > l.newDate(a).getTime()), + l.limit(null, t) || l.limit(null, a) + ? o.addClass(s) + : o[n ? 'addClass' : 'removeClass'](s), + e && + n && + l.hint( + 'string' == typeof e + ? r.timeout.replace(/日期/g, e) + : r.timeout + )) + }), + (v.prototype.parse = function (e, t) { + var a = this, + n = a.config, + l = + t || + (e + ? lay.extend({}, a.endDate, a.endTime) + : n.range + ? lay.extend({}, n.dateTime, a.startTime) + : n.dateTime), + i = a.format.concat() + return ( + lay.each(i, function (e, t) { + ;/yyyy|y/.test(t) + ? (i[e] = lay.digit(l.year, t.length)) + : /MM|M/.test(t) + ? (i[e] = lay.digit(l.month + 1, t.length)) + : /dd|d/.test(t) + ? (i[e] = lay.digit(l.date, t.length)) + : /HH|H/.test(t) + ? (i[e] = lay.digit(l.hours, t.length)) + : /mm|m/.test(t) + ? (i[e] = lay.digit(l.minutes, t.length)) + : /ss|s/.test(t) && + (i[e] = lay.digit(l.seconds, t.length)) + }), + n.range && !e + ? i.join('') + ' ' + n.range + ' ' + a.parse(1) + : i.join('') + ) + }), + (v.prototype.newDate = function (e) { + return ( + (e = e || {}), + new Date( + e.year || 1, + e.month || 0, + e.date || 1, + e.hours || 0, + e.minutes || 0, + e.seconds || 0 + ) + ) + }), + (v.prototype.setValue = function (e) { + var t = this, + a = t.config, + n = t.bindElem || a.elem[0], + l = t.isInput(n) ? 'val' : 'html' + return 'static' === a.position || lay(n)[l](e || ''), this + }), + (v.prototype.stampRange = function (e, t) { + var a, + n, + l = this, + i = l.config + i.range && + ((a = l.newDate(i.dateTime).getTime()), + (n = l.newDate(l.endDate).getTime()), + lay.each(t, function (t, i) { + var r = lay(i).attr('lay-ymd').split('-'), + o = l + .newDate({ + year: r[0], + month: r[1] - 1, + date: r[2], + }) + .getTime() + 0 == e + ? o > a && lay(i).addClass(c) + : o < n && lay(i).addClass(c) + })) + }), + (v.prototype.done = function (e, t) { + var a = this, + n = a.config, + l = lay.extend({}, lay.extend(n.dateTime, a.startTime)), + i = lay.extend({}, lay.extend(a.endDate, a.endTime)) + return ( + lay.each([l, i], function (e, t) { + 'month' in t && lay.extend(t, { month: t.month + 1 }) + }), + (e = e || [a.parse(), l, i]), + 'function' == typeof n[t || 'done'] && + n[t || 'done'].apply(n, e), + a + ) + }), + (v.prototype.choose = function (e, t) { + var a = this, + n = a.config, + l = a.thisDateTime(t), + i = (lay(a.elem).find('td'), e.attr('lay-ymd').split('-')) + ;(i = { year: 0 | i[0], month: (0 | i[1]) - 1, date: 0 | i[2] }), + e.hasClass(s) || + (lay.extend(l, i), + n.range + ? (lay.each(['startTime', 'endTime'], function (e, t) { + a[t] = a[t] || { + hours: 0, + minutes: 0, + seconds: 0, + } + }), + a.calendar(null, t)) + : 'static' === n.position + ? a.calendar().done().done(null, 'change') + : 'date' === n.type + ? a.setValue(a.parse()).remove().done() + : 'datetime' === n.type && + a.calendar().done(null, 'change')) + }), + (v.prototype.tool = function (e, t) { + var a = this, + n = a.config, + l = a.lang(), + i = n.dateTime, + r = 'static' === n.position, + o = { + datetime: function () { + lay(e).hasClass(s) || + (a.list('time', 0), + n.range && a.list('time', 1), + lay(e) + .attr('lay-type', 'date') + .html(a.lang().dateTips)) + }, + date: function () { + a.closeList(), + lay(e) + .attr('lay-type', 'datetime') + .html(a.lang().timeTips) + }, + clear: function () { + a.setValue('').remove(), + r && (lay.extend(i, a.firstDate), a.calendar()), + n.range && + (delete a.endDate, + delete a.startTime, + delete a.endTime), + a.done(['', {}, {}]) + }, + now: function () { + var e = new Date() + lay.extend(i, a.systemDate(), { + hours: e.getHours(), + minutes: e.getMinutes(), + seconds: e.getSeconds(), + }), + a.setValue(a.parse()).remove(), + r && a.calendar(), + a.done() + }, + confirm: function () { + if (n.range) { + if (lay(e).hasClass(s)) + return a.hint( + 'time' === n.type + ? l.timeout.replace(/日期/g, '时间') + : l.timeout + ) + } else if (lay(e).hasClass(s)) + return a.hint(l.invalidDate) + a.done(), a.setValue(a.parse()).remove() + }, + } + o[t] && o[t]() + }), + (v.prototype.change = function (e) { + var t = this, + a = t.config, + n = t.thisDateTime(e), + l = a.range && ('year' === a.type || 'month' === a.type), + i = t.elemCont[e || 0], + r = t.listYM[e], + o = function (o) { + var s = lay(i).find('.laydate-year-list')[0], + y = lay(i).find('.laydate-month-list')[0] + return ( + s && + ((r[0] = o ? r[0] - 15 : r[0] + 15), + t.list('year', e)), + y && (o ? r[0]-- : r[0]++, t.list('month', e)), + (s || y) && + (lay.extend(n, { year: r[0] }), + l && (n.year = r[0]), + a.range || t.done(null, 'change'), + a.range || + t.limit(lay(t.footer).find(f), { year: r[0] })), + t.setBtnStatus(), + s || y + ) + } + return { + prevYear: function () { + o('sub') || + (n.year--, + t.checkDate('limit').calendar(null, e), + a.range || t.done(null, 'change')) + }, + prevMonth: function () { + var l = t.getAsYM(n.year, n.month, 'sub') + lay.extend(n, { year: l[0], month: l[1] }), + t.checkDate('limit').calendar(null, e), + a.range || t.done(null, 'change') + }, + nextMonth: function () { + var l = t.getAsYM(n.year, n.month) + lay.extend(n, { year: l[0], month: l[1] }), + t.checkDate('limit').calendar(null, e), + a.range || t.done(null, 'change') + }, + nextYear: function () { + o() || + (n.year++, + t.checkDate('limit').calendar(null, e), + a.range || t.done(null, 'change')) + }, + } + }), + (v.prototype.changeEvent = function () { + var e = this + e.config + lay(e.elem).on('click', function (e) { + lay.stope(e) + }), + lay.each(e.elemHeader, function (t, a) { + lay(a[0]).on('click', function (a) { + e.change(t).prevYear() + }), + lay(a[1]).on('click', function (a) { + e.change(t).prevMonth() + }), + lay(a[2]) + .find('span') + .on('click', function (a) { + var n = lay(this), + l = n.attr('lay-ym'), + i = n.attr('lay-type') + l && + ((l = l.split('-')), + (e.listYM[t] = [0 | l[0], 0 | l[1]]), + e.list(i, t), + lay(e.footer).find(g).addClass(s)) + }), + lay(a[3]).on('click', function (a) { + e.change(t).nextMonth() + }), + lay(a[4]).on('click', function (a) { + e.change(t).nextYear() + }) + }), + lay.each(e.table, function (t, a) { + var n = lay(a).find('td') + n.on('click', function () { + e.choose(lay(this), t) + }) + }), + lay(e.footer) + .find('span') + .on('click', function () { + var t = lay(this).attr('lay-type') + e.tool(this, t) + }) + }), + (v.prototype.isInput = function (e) { + return /input|textarea/.test(e.tagName.toLocaleLowerCase()) + }), + (v.prototype.events = function () { + var t = this, + a = t.config, + n = function (e, n) { + e.on(a.trigger, function () { + n && (t.bindElem = this), t.render() + }) + } + a.elem[0] && + !a.elem[0].eventHandler && + (n(a.elem, 'bind'), + n(a.eventElem), + lay(document) + .on('click', function (e) { + e.target !== a.elem[0] && + e.target !== a.eventElem[0] && + e.target !== lay(a.closeStop)[0] && + t.remove() + }) + .on('keydown', function (e) { + 13 === e.keyCode && + lay('#' + t.elemID)[0] && + t.elemID === v.thisElemDate && + (e.preventDefault(), + lay(t.footer).find(f)[0].click()) + }), + lay(e).on('resize', function () { + return !(!t.elem || !lay(r)[0]) && void t.position() + }), + (a.elem[0].eventHandler = !0)) + }), + (n.render = function (e) { + var t = new v(e) + return l.call(t) + }), + (n.getEndDate = function (e, t) { + var a = new Date() + return ( + a.setFullYear(t || a.getFullYear(), e || a.getMonth() + 1, 1), + new Date(a.getTime() - 864e5).getDate() + ) + }), + t + ? (n.ready(), + layui.define('lay', function (e) { + ;(n.path = layui.cache.dir), e(i, n) + })) + : 'function' == typeof define && define.amd + ? define(function () { + return n + }) + : (function () { + n.ready(), (e.laydate = n) + })() +})(window) +!(function (e, t) { + 'object' == typeof module && 'object' == typeof module.exports + ? (module.exports = e.document + ? t(e, !0) + : function (e) { + if (!e.document) + throw new Error( + 'jQuery requires a window with a document' + ) + return t(e) + }) + : t(e) +})('undefined' != typeof window ? window : this, function (e, t) { + function n(e) { + var t = !!e && 'length' in e && e.length, + n = pe.type(e) + return ( + 'function' !== n && + !pe.isWindow(e) && + ('array' === n || + 0 === t || + ('number' == typeof t && t > 0 && t - 1 in e)) + ) + } + function r(e, t, n) { + if (pe.isFunction(t)) + return pe.grep(e, function (e, r) { + return !!t.call(e, r, e) !== n + }) + if (t.nodeType) + return pe.grep(e, function (e) { + return (e === t) !== n + }) + if ('string' == typeof t) { + if (Ce.test(t)) return pe.filter(t, e, n) + t = pe.filter(t, e) + } + return pe.grep(e, function (e) { + return pe.inArray(e, t) > -1 !== n + }) + } + function i(e, t) { + do e = e[t] + while (e && 1 !== e.nodeType) + return e + } + function o(e) { + var t = {} + return ( + pe.each(e.match(De) || [], function (e, n) { + t[n] = !0 + }), + t + ) + } + function a() { + re.addEventListener + ? (re.removeEventListener('DOMContentLoaded', s), + e.removeEventListener('load', s)) + : (re.detachEvent('onreadystatechange', s), + e.detachEvent('onload', s)) + } + function s() { + ;(re.addEventListener || + 'load' === e.event.type || + 'complete' === re.readyState) && + (a(), pe.ready()) + } + function u(e, t, n) { + if (void 0 === n && 1 === e.nodeType) { + var r = 'data-' + t.replace(_e, '-$1').toLowerCase() + if (((n = e.getAttribute(r)), 'string' == typeof n)) { + try { + n = + 'true' === n || + ('false' !== n && + ('null' === n + ? null + : +n + '' === n + ? +n + : qe.test(n) + ? pe.parseJSON(n) + : n)) + } catch (i) {} + pe.data(e, t, n) + } else n = void 0 + } + return n + } + function l(e) { + var t + for (t in e) + if (('data' !== t || !pe.isEmptyObject(e[t])) && 'toJSON' !== t) + return !1 + return !0 + } + function c(e, t, n, r) { + if (He(e)) { + var i, + o, + a = pe.expando, + s = e.nodeType, + u = s ? pe.cache : e, + l = s ? e[a] : e[a] && a + if ( + (l && u[l] && (r || u[l].data)) || + void 0 !== n || + 'string' != typeof t + ) + return ( + l || (l = s ? (e[a] = ne.pop() || pe.guid++) : a), + u[l] || (u[l] = s ? {} : { toJSON: pe.noop }), + ('object' != typeof t && 'function' != typeof t) || + (r + ? (u[l] = pe.extend(u[l], t)) + : (u[l].data = pe.extend(u[l].data, t))), + (o = u[l]), + r || (o.data || (o.data = {}), (o = o.data)), + void 0 !== n && (o[pe.camelCase(t)] = n), + 'string' == typeof t + ? ((i = o[t]), null == i && (i = o[pe.camelCase(t)])) + : (i = o), + i + ) + } + } + function f(e, t, n) { + if (He(e)) { + var r, + i, + o = e.nodeType, + a = o ? pe.cache : e, + s = o ? e[pe.expando] : pe.expando + if (a[s]) { + if (t && (r = n ? a[s] : a[s].data)) { + pe.isArray(t) + ? (t = t.concat(pe.map(t, pe.camelCase))) + : t in r + ? (t = [t]) + : ((t = pe.camelCase(t)), + (t = t in r ? [t] : t.split(' '))), + (i = t.length) + for (; i--; ) delete r[t[i]] + if (n ? !l(r) : !pe.isEmptyObject(r)) return + } + ;(n || (delete a[s].data, l(a[s]))) && + (o + ? pe.cleanData([e], !0) + : fe.deleteExpando || a != a.window + ? delete a[s] + : (a[s] = void 0)) + } + } + } + function d(e, t, n, r) { + var i, + o = 1, + a = 20, + s = r + ? function () { + return r.cur() + } + : function () { + return pe.css(e, t, '') + }, + u = s(), + l = (n && n[3]) || (pe.cssNumber[t] ? '' : 'px'), + c = (pe.cssNumber[t] || ('px' !== l && +u)) && Me.exec(pe.css(e, t)) + if (c && c[3] !== l) { + ;(l = l || c[3]), (n = n || []), (c = +u || 1) + do (o = o || '.5'), (c /= o), pe.style(e, t, c + l) + while (o !== (o = s() / u) && 1 !== o && --a) + } + return ( + n && + ((c = +c || +u || 0), + (i = n[1] ? c + (n[1] + 1) * n[2] : +n[2]), + r && ((r.unit = l), (r.start = c), (r.end = i))), + i + ) + } + function p(e) { + var t = ze.split('|'), + n = e.createDocumentFragment() + if (n.createElement) for (; t.length; ) n.createElement(t.pop()) + return n + } + function h(e, t) { + var n, + r, + i = 0, + o = + 'undefined' != typeof e.getElementsByTagName + ? e.getElementsByTagName(t || '*') + : 'undefined' != typeof e.querySelectorAll + ? e.querySelectorAll(t || '*') + : void 0 + if (!o) + for (o = [], n = e.childNodes || e; null != (r = n[i]); i++) + !t || pe.nodeName(r, t) ? o.push(r) : pe.merge(o, h(r, t)) + return void 0 === t || (t && pe.nodeName(e, t)) ? pe.merge([e], o) : o + } + function g(e, t) { + for (var n, r = 0; null != (n = e[r]); r++) + pe._data(n, 'globalEval', !t || pe._data(t[r], 'globalEval')) + } + function m(e) { + Be.test(e.type) && (e.defaultChecked = e.checked) + } + function y(e, t, n, r, i) { + for ( + var o, a, s, u, l, c, f, d = e.length, y = p(t), v = [], x = 0; + x < d; + x++ + ) + if (((a = e[x]), a || 0 === a)) + if ('object' === pe.type(a)) pe.merge(v, a.nodeType ? [a] : a) + else if (Ue.test(a)) { + for ( + u = u || y.appendChild(t.createElement('div')), + l = (We.exec(a) || ['', ''])[1].toLowerCase(), + f = Xe[l] || Xe._default, + u.innerHTML = f[1] + pe.htmlPrefilter(a) + f[2], + o = f[0]; + o--; + + ) + u = u.lastChild + if ( + (!fe.leadingWhitespace && + $e.test(a) && + v.push(t.createTextNode($e.exec(a)[0])), + !fe.tbody) + ) + for ( + a = + 'table' !== l || Ve.test(a) + ? '' !== f[1] || Ve.test(a) + ? 0 + : u + : u.firstChild, + o = a && a.childNodes.length; + o--; + + ) + pe.nodeName((c = a.childNodes[o]), 'tbody') && + !c.childNodes.length && + a.removeChild(c) + for ( + pe.merge(v, u.childNodes), u.textContent = ''; + u.firstChild; + + ) + u.removeChild(u.firstChild) + u = y.lastChild + } else v.push(t.createTextNode(a)) + for ( + u && y.removeChild(u), + fe.appendChecked || pe.grep(h(v, 'input'), m), + x = 0; + (a = v[x++]); + + ) + if (r && pe.inArray(a, r) > -1) i && i.push(a) + else if ( + ((s = pe.contains(a.ownerDocument, a)), + (u = h(y.appendChild(a), 'script')), + s && g(u), + n) + ) + for (o = 0; (a = u[o++]); ) Ie.test(a.type || '') && n.push(a) + return (u = null), y + } + function v() { + return !0 + } + function x() { + return !1 + } + function b() { + try { + return re.activeElement + } catch (e) {} + } + function w(e, t, n, r, i, o) { + var a, s + if ('object' == typeof t) { + 'string' != typeof n && ((r = r || n), (n = void 0)) + for (s in t) w(e, s, n, r, t[s], o) + return e + } + if ( + (null == r && null == i + ? ((i = n), (r = n = void 0)) + : null == i && + ('string' == typeof n + ? ((i = r), (r = void 0)) + : ((i = r), (r = n), (n = void 0))), + i === !1) + ) + i = x + else if (!i) return e + return ( + 1 === o && + ((a = i), + (i = function (e) { + return pe().off(e), a.apply(this, arguments) + }), + (i.guid = a.guid || (a.guid = pe.guid++))), + e.each(function () { + pe.event.add(this, t, i, r, n) + }) + ) + } + function T(e, t) { + return pe.nodeName(e, 'table') && + pe.nodeName(11 !== t.nodeType ? t : t.firstChild, 'tr') + ? e.getElementsByTagName('tbody')[0] || + e.appendChild(e.ownerDocument.createElement('tbody')) + : e + } + function C(e) { + return (e.type = (null !== pe.find.attr(e, 'type')) + '/' + e.type), e + } + function E(e) { + var t = it.exec(e.type) + return t ? (e.type = t[1]) : e.removeAttribute('type'), e + } + function N(e, t) { + if (1 === t.nodeType && pe.hasData(e)) { + var n, + r, + i, + o = pe._data(e), + a = pe._data(t, o), + s = o.events + if (s) { + delete a.handle, (a.events = {}) + for (n in s) + for (r = 0, i = s[n].length; r < i; r++) + pe.event.add(t, n, s[n][r]) + } + a.data && (a.data = pe.extend({}, a.data)) + } + } + function k(e, t) { + var n, r, i + if (1 === t.nodeType) { + if ( + ((n = t.nodeName.toLowerCase()), + !fe.noCloneEvent && t[pe.expando]) + ) { + i = pe._data(t) + for (r in i.events) pe.removeEvent(t, r, i.handle) + t.removeAttribute(pe.expando) + } + 'script' === n && t.text !== e.text + ? ((C(t).text = e.text), E(t)) + : 'object' === n + ? (t.parentNode && (t.outerHTML = e.outerHTML), + fe.html5Clone && + e.innerHTML && + !pe.trim(t.innerHTML) && + (t.innerHTML = e.innerHTML)) + : 'input' === n && Be.test(e.type) + ? ((t.defaultChecked = t.checked = e.checked), + t.value !== e.value && (t.value = e.value)) + : 'option' === n + ? (t.defaultSelected = t.selected = e.defaultSelected) + : ('input' !== n && 'textarea' !== n) || + (t.defaultValue = e.defaultValue) + } + } + function S(e, t, n, r) { + t = oe.apply([], t) + var i, + o, + a, + s, + u, + l, + c = 0, + f = e.length, + d = f - 1, + p = t[0], + g = pe.isFunction(p) + if ( + g || + (f > 1 && 'string' == typeof p && !fe.checkClone && rt.test(p)) + ) + return e.each(function (i) { + var o = e.eq(i) + g && (t[0] = p.call(this, i, o.html())), S(o, t, n, r) + }) + if ( + f && + ((l = y(t, e[0].ownerDocument, !1, e, r)), + (i = l.firstChild), + 1 === l.childNodes.length && (l = i), + i || r) + ) { + for (s = pe.map(h(l, 'script'), C), a = s.length; c < f; c++) + (o = l), + c !== d && + ((o = pe.clone(o, !0, !0)), + a && pe.merge(s, h(o, 'script'))), + n.call(e[c], o, c) + if (a) + for ( + u = s[s.length - 1].ownerDocument, pe.map(s, E), c = 0; + c < a; + c++ + ) + (o = s[c]), + Ie.test(o.type || '') && + !pe._data(o, 'globalEval') && + pe.contains(u, o) && + (o.src + ? pe._evalUrl && pe._evalUrl(o.src) + : pe.globalEval( + ( + o.text || + o.textContent || + o.innerHTML || + '' + ).replace(ot, '') + )) + l = i = null + } + return e + } + function A(e, t, n) { + for (var r, i = t ? pe.filter(t, e) : e, o = 0; null != (r = i[o]); o++) + n || 1 !== r.nodeType || pe.cleanData(h(r)), + r.parentNode && + (n && pe.contains(r.ownerDocument, r) && g(h(r, 'script')), + r.parentNode.removeChild(r)) + return e + } + function D(e, t) { + var n = pe(t.createElement(e)).appendTo(t.body), + r = pe.css(n[0], 'display') + return n.detach(), r + } + function j(e) { + var t = re, + n = lt[e] + return ( + n || + ((n = D(e, t)), + ('none' !== n && n) || + ((ut = ( + ut || + pe("' + break + case 3: + delete t.title, + delete t.closeBtn, + t.icon === -1 && 0 === t.icon, + r.closeAll('loading') + break + case 4: + f || (t.content = [t.content, 'body']), + (t.follow = t.content[1]), + (t.content = + t.content[0] + + ''), + delete t.title, + (t.tips = + 'object' == typeof t.tips + ? t.tips + : [t.tips, !0]), + t.tipsMore || r.closeAll('tips') + } + if ( + (e + .vessel(f, function (n, r, u) { + c.append(n[0]), + f + ? (function () { + 2 == t.type || 4 == t.type + ? (function () { + i('body').append(n[1]) + })() + : (function () { + s.parents( + '.' + l[0] + )[0] || + (s + .data( + 'display', + s.css( + 'display' + ) + ) + .show() + .addClass( + 'layui-layer-wrap' + ) + .wrap(n[1]), + i('#' + l[0] + a) + .find( + '.' + l[5] + ) + .before(r)) + })() + })() + : c.append(n[1]), + i('.layui-layer-move')[0] || + c.append((o.moveElem = u)), + (e.layero = i('#' + l[0] + a)), + t.scrollbar || + l.html + .css('overflow', 'hidden') + .attr('layer-full', a) + }) + .auto(a), + i('#layui-layer-shade' + e.index).css({ + 'background-color': t.shade[1] || '#000', + opacity: t.shade[0] || t.shade, + }), + 2 == t.type && + 6 == r.ie && + e.layero.find('iframe').attr('src', s[0]), + 4 == t.type ? e.tips() : e.offset(), + t.fixed && + n.on('resize', function () { + e.offset(), + (/^\d+%$/.test(t.area[0]) || + /^\d+%$/.test(t.area[1])) && + e.auto(a), + 4 == t.type && e.tips() + }), + t.time <= 0 || + setTimeout(function () { + r.close(e.index) + }, t.time), + e.move().callback(), + l.anim[t.anim]) + ) { + var u = 'layer-anim ' + l.anim[t.anim] + e.layero + .addClass(u) + .one( + 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', + function () { + i(this).removeClass(u) + } + ) + } + t.isOutAnim && e.layero.data('isOutAnim', !0) + } + }), + (s.pt.auto = function (e) { + var t = this, + a = t.config, + o = i('#' + l[0] + e) + '' === a.area[0] && + a.maxWidth > 0 && + (r.ie && r.ie < 8 && a.btn && o.width(o.innerWidth()), + o.outerWidth() > a.maxWidth && o.width(a.maxWidth)) + var s = [o.innerWidth(), o.innerHeight()], + f = o.find(l[1]).outerHeight() || 0, + c = o.find('.' + l[6]).outerHeight() || 0, + u = function (e) { + ;(e = o.find(e)), + e.height( + s[1] - + f - + c - + 2 * (0 | parseFloat(e.css('padding-top'))) + ) + } + switch (a.type) { + case 2: + u('iframe') + break + default: + '' === a.area[1] + ? a.maxHeight > 0 && o.outerHeight() > a.maxHeight + ? ((s[1] = a.maxHeight), u('.' + l[5])) + : a.fixed && + s[1] >= n.height() && + ((s[1] = n.height()), u('.' + l[5])) + : u('.' + l[5]) + } + return t + }), + (s.pt.offset = function () { + var e = this, + t = e.config, + i = e.layero, + a = [i.outerWidth(), i.outerHeight()], + o = 'object' == typeof t.offset + ;(e.offsetTop = (n.height() - a[1]) / 2), + (e.offsetLeft = (n.width() - a[0]) / 2), + o + ? ((e.offsetTop = t.offset[0]), + (e.offsetLeft = t.offset[1] || e.offsetLeft)) + : 'auto' !== t.offset && + ('t' === t.offset + ? (e.offsetTop = 0) + : 'r' === t.offset + ? (e.offsetLeft = n.width() - a[0]) + : 'b' === t.offset + ? (e.offsetTop = n.height() - a[1]) + : 'l' === t.offset + ? (e.offsetLeft = 0) + : 'lt' === t.offset + ? ((e.offsetTop = 0), (e.offsetLeft = 0)) + : 'lb' === t.offset + ? ((e.offsetTop = n.height() - a[1]), + (e.offsetLeft = 0)) + : 'rt' === t.offset + ? ((e.offsetTop = 0), + (e.offsetLeft = n.width() - a[0])) + : 'rb' === t.offset + ? ((e.offsetTop = n.height() - a[1]), + (e.offsetLeft = n.width() - a[0])) + : (e.offsetTop = t.offset)), + t.fixed || + ((e.offsetTop = /%$/.test(e.offsetTop) + ? (n.height() * parseFloat(e.offsetTop)) / 100 + : parseFloat(e.offsetTop)), + (e.offsetLeft = /%$/.test(e.offsetLeft) + ? (n.width() * parseFloat(e.offsetLeft)) / 100 + : parseFloat(e.offsetLeft)), + (e.offsetTop += n.scrollTop()), + (e.offsetLeft += n.scrollLeft())), + i.attr('minLeft') && + ((e.offsetTop = + n.height() - (i.find(l[1]).outerHeight() || 0)), + (e.offsetLeft = i.css('left'))), + i.css({ top: e.offsetTop, left: e.offsetLeft }) + }), + (s.pt.tips = function () { + var e = this, + t = e.config, + a = e.layero, + o = [a.outerWidth(), a.outerHeight()], + r = i(t.follow) + r[0] || (r = i('body')) + var s = { + width: r.outerWidth(), + height: r.outerHeight(), + top: r.offset().top, + left: r.offset().left, + }, + f = a.find('.layui-layer-TipsG'), + c = t.tips[0] + t.tips[1] || f.remove(), + (s.autoLeft = function () { + s.left + o[0] - n.width() > 0 + ? ((s.tipLeft = s.left + s.width - o[0]), + f.css({ right: 12, left: 'auto' })) + : (s.tipLeft = s.left) + }), + (s.where = [ + function () { + s.autoLeft(), + (s.tipTop = s.top - o[1] - 10), + f + .removeClass('layui-layer-TipsB') + .addClass('layui-layer-TipsT') + .css('border-right-color', t.tips[1]) + }, + function () { + ;(s.tipLeft = s.left + s.width + 10), + (s.tipTop = s.top), + f + .removeClass('layui-layer-TipsL') + .addClass('layui-layer-TipsR') + .css('border-bottom-color', t.tips[1]) + }, + function () { + s.autoLeft(), + (s.tipTop = s.top + s.height + 10), + f + .removeClass('layui-layer-TipsT') + .addClass('layui-layer-TipsB') + .css('border-right-color', t.tips[1]) + }, + function () { + ;(s.tipLeft = s.left - o[0] - 10), + (s.tipTop = s.top), + f + .removeClass('layui-layer-TipsR') + .addClass('layui-layer-TipsL') + .css('border-bottom-color', t.tips[1]) + }, + ]), + s.where[c - 1](), + 1 === c + ? s.top - (n.scrollTop() + o[1] + 16) < 0 && s.where[2]() + : 2 === c + ? n.width() - (s.left + s.width + o[0] + 16) > 0 || + s.where[3]() + : 3 === c + ? s.top - + n.scrollTop() + + s.height + + o[1] + + 16 - + n.height() > + 0 && s.where[0]() + : 4 === c && o[0] + 16 - s.left > 0 && s.where[1](), + a + .find('.' + l[5]) + .css({ + 'background-color': t.tips[1], + 'padding-right': t.closeBtn ? '30px' : '', + }), + a.css({ + left: s.tipLeft - (t.fixed ? n.scrollLeft() : 0), + top: s.tipTop - (t.fixed ? n.scrollTop() : 0), + }) + }), + (s.pt.move = function () { + var e = this, + t = e.config, + a = i(document), + s = e.layero, + l = s.find(t.move), + f = s.find('.layui-layer-resize'), + c = {} + return ( + t.move && l.css('cursor', 'move'), + l.on('mousedown', function (e) { + e.preventDefault(), + t.move && + ((c.moveStart = !0), + (c.offset = [ + e.clientX - parseFloat(s.css('left')), + e.clientY - parseFloat(s.css('top')), + ]), + o.moveElem.css('cursor', 'move').show()) + }), + f.on('mousedown', function (e) { + e.preventDefault(), + (c.resizeStart = !0), + (c.offset = [e.clientX, e.clientY]), + (c.area = [s.outerWidth(), s.outerHeight()]), + o.moveElem.css('cursor', 'se-resize').show() + }), + a + .on('mousemove', function (i) { + if (c.moveStart) { + var a = i.clientX - c.offset[0], + o = i.clientY - c.offset[1], + l = 'fixed' === s.css('position') + if ( + (i.preventDefault(), + (c.stX = l ? 0 : n.scrollLeft()), + (c.stY = l ? 0 : n.scrollTop()), + !t.moveOut) + ) { + var f = n.width() - s.outerWidth() + c.stX, + u = n.height() - s.outerHeight() + c.stY + a < c.stX && (a = c.stX), + a > f && (a = f), + o < c.stY && (o = c.stY), + o > u && (o = u) + } + s.css({ left: a, top: o }) + } + if (t.resize && c.resizeStart) { + var a = i.clientX - c.offset[0], + o = i.clientY - c.offset[1] + i.preventDefault(), + r.style(e.index, { + width: c.area[0] + a, + height: c.area[1] + o, + }), + (c.isResize = !0), + t.resizing && t.resizing(s) + } + }) + .on('mouseup', function (e) { + c.moveStart && + (delete c.moveStart, + o.moveElem.hide(), + t.moveEnd && t.moveEnd(s)), + c.resizeStart && + (delete c.resizeStart, o.moveElem.hide()) + }), + e + ) + }), + (s.pt.callback = function () { + function e() { + var e = a.cancel && a.cancel(t.index, n) + e === !1 || r.close(t.index) + } + var t = this, + n = t.layero, + a = t.config + t.openLayer(), + a.success && + (2 == a.type + ? n.find('iframe').on('load', function () { + a.success(n, t.index) + }) + : a.success(n, t.index)), + 6 == r.ie && t.IE6(n), + n + .find('.' + l[6]) + .children('a') + .on('click', function () { + var e = i(this).index() + if (0 === e) + a.yes + ? a.yes(t.index, n) + : a.btn1 + ? a.btn1(t.index, n) + : r.close(t.index) + else { + var o = + a['btn' + (e + 1)] && + a['btn' + (e + 1)](t.index, n) + o === !1 || r.close(t.index) + } + }), + n.find('.' + l[7]).on('click', e), + a.shadeClose && + i('#layui-layer-shade' + t.index).on('click', function () { + r.close(t.index) + }), + n.find('.layui-layer-min').on('click', function () { + var e = a.min && a.min(n) + e === !1 || r.min(t.index, a) + }), + n.find('.layui-layer-max').on('click', function () { + i(this).hasClass('layui-layer-maxmin') + ? (r.restore(t.index), a.restore && a.restore(n)) + : (r.full(t.index, a), + setTimeout(function () { + a.full && a.full(n) + }, 100)) + }), + a.end && (o.end[t.index] = a.end) + }), + (o.reselect = function () { + i.each(i('select'), function (e, t) { + var n = i(this) + n.parents('.' + l[0])[0] || + (1 == n.attr('layer') && + i('.' + l[0]).length < 1 && + n.removeAttr('layer').show()), + (n = null) + }) + }), + (s.pt.IE6 = function (e) { + i('select').each(function (e, t) { + var n = i(this) + n.parents('.' + l[0])[0] || + 'none' === n.css('display') || + n.attr({ layer: '1' }).hide(), + (n = null) + }) + }), + (s.pt.openLayer = function () { + var e = this + ;(r.zIndex = e.config.zIndex), + (r.setTop = function (e) { + var t = function () { + r.zIndex++, e.css('z-index', r.zIndex + 1) + } + return ( + (r.zIndex = parseInt(e[0].style.zIndex)), + e.on('mousedown', t), + r.zIndex + ) + }) + }), + (o.record = function (e) { + var t = [ + e.width(), + e.height(), + e.position().top, + e.position().left + parseFloat(e.css('margin-left')), + ] + e.find('.layui-layer-max').addClass('layui-layer-maxmin'), + e.attr({ area: t }) + }), + (o.rescollbar = function (e) { + l.html.attr('layer-full') == e && + (l.html[0].style.removeProperty + ? l.html[0].style.removeProperty('overflow') + : l.html[0].style.removeAttribute('overflow'), + l.html.removeAttr('layer-full')) + }), + (e.layer = r), + (r.getChildFrame = function (e, t) { + return ( + (t = t || i('.' + l[4]).attr('times')), + i('#' + l[0] + t) + .find('iframe') + .contents() + .find(e) + ) + }), + (r.getFrameIndex = function (e) { + return i('#' + e) + .parents('.' + l[4]) + .attr('times') + }), + (r.iframeAuto = function (e) { + if (e) { + var t = r.getChildFrame('html', e).outerHeight(), + n = i('#' + l[0] + e), + a = n.find(l[1]).outerHeight() || 0, + o = n.find('.' + l[6]).outerHeight() || 0 + n.css({ height: t + a + o }), + n.find('iframe').css({ height: t }) + } + }), + (r.iframeSrc = function (e, t) { + i('#' + l[0] + e) + .find('iframe') + .attr('src', t) + }), + (r.style = function (e, t, n) { + var a = i('#' + l[0] + e), + r = a.find('.layui-layer-content'), + s = a.attr('type'), + f = a.find(l[1]).outerHeight() || 0, + c = a.find('.' + l[6]).outerHeight() || 0 + a.attr('minLeft') + s !== o.type[3] && + s !== o.type[4] && + (n || + (parseFloat(t.width) <= 260 && (t.width = 260), + parseFloat(t.height) - f - c <= 64 && + (t.height = 64 + f + c)), + a.css(t), + (c = a.find('.' + l[6]).outerHeight()), + s === o.type[2] + ? a + .find('iframe') + .css({ height: parseFloat(t.height) - f - c }) + : r.css({ + height: + parseFloat(t.height) - + f - + c - + parseFloat(r.css('padding-top')) - + parseFloat(r.css('padding-bottom')), + })) + }), + (r.min = function (e, t) { + var a = i('#' + l[0] + e), + s = a.find(l[1]).outerHeight() || 0, + f = a.attr('minLeft') || 181 * o.minIndex + 'px', + c = a.css('position') + o.record(a), + o.minLeft[0] && ((f = o.minLeft[0]), o.minLeft.shift()), + a.attr('position', c), + r.style( + e, + { + width: 180, + height: s, + left: f, + top: n.height() - s, + position: 'fixed', + overflow: 'hidden', + }, + !0 + ), + a.find('.layui-layer-min').hide(), + 'page' === a.attr('type') && a.find(l[4]).hide(), + o.rescollbar(e), + a.attr('minLeft') || o.minIndex++, + a.attr('minLeft', f) + }), + (r.restore = function (e) { + var t = i('#' + l[0] + e), + n = t.attr('area').split(',') + t.attr('type') + r.style( + e, + { + width: parseFloat(n[0]), + height: parseFloat(n[1]), + top: parseFloat(n[2]), + left: parseFloat(n[3]), + position: t.attr('position'), + overflow: 'visible', + }, + !0 + ), + t.find('.layui-layer-max').removeClass('layui-layer-maxmin'), + t.find('.layui-layer-min').show(), + 'page' === t.attr('type') && t.find(l[4]).show(), + o.rescollbar(e) + }), + (r.full = function (e) { + var t, + a = i('#' + l[0] + e) + o.record(a), + l.html.attr('layer-full') || + l.html.css('overflow', 'hidden').attr('layer-full', e), + clearTimeout(t), + (t = setTimeout(function () { + var t = 'fixed' === a.css('position') + r.style( + e, + { + top: t ? 0 : n.scrollTop(), + left: t ? 0 : n.scrollLeft(), + width: n.width(), + height: n.height(), + }, + !0 + ), + a.find('.layui-layer-min').hide() + }, 100)) + }), + (r.title = function (e, t) { + var n = i('#' + l[0] + (t || r.index)).find(l[1]) + n.html(e) + }), + (r.close = function (e) { + r.ready(function () { + var t = i('#' + l[0] + e), + n = t.attr('type'), + a = 'layer-anim-close' + if (t[0]) { + var s = 'layui-layer-wrap', + f = function () { + if ( + n === o.type[1] && + 'object' === t.attr('conType') + ) { + t.children(':not(.' + l[5] + ')').remove() + for (var a = t.find('.' + s), r = 0; r < 2; r++) + a.unwrap() + a.css('display', a.data('display')).removeClass( + s + ) + } else { + if (n === o.type[2]) + try { + var f = i('#' + l[4] + e)[0] + f.contentWindow.document.write(''), + f.contentWindow.close(), + t.find('.' + l[5])[0].removeChild(f) + } catch (c) {} + ;(t[0].innerHTML = ''), t.remove() + } + 'function' == typeof o.end[e] && o.end[e](), + delete o.end[e] + } + t.data('isOutAnim') && t.addClass('layer-anim ' + a), + i( + '#layui-layer-moves, #layui-layer-shade' + e + ).remove(), + 6 == r.ie && o.reselect(), + o.rescollbar(e), + t.attr('minLeft') && + (o.minIndex--, o.minLeft.push(t.attr('minLeft'))), + (r.ie && r.ie < 10) || !t.data('isOutAnim') + ? f() + : setTimeout(function () { + f() + }, 200) + } + }) + }), + (r.closeAll = function (e) { + r.ready(function () { + i.each(i('.' + l[0]), function () { + var t = i(this), + n = e ? t.attr('type') === e : 1 + n && r.close(t.attr('times')), (n = null) + }) + }) + }) + var f = r.cache || {}, + c = function (e) { + return f.skin ? ' ' + f.skin + ' ' + f.skin + '-' + e : '' + } + ;(r.prompt = function (e, t) { + var a = '' + if (((e = e || {}), 'function' == typeof e && (t = e), e.area)) { + var o = e.area + ;(a = 'style="width: ' + o[0] + '; height: ' + o[1] + ';"'), + delete e.area + } + var s, + l = + 2 == e.formType + ? '' + : (function () { + return ( + '' + ) + })(), + f = e.success + return ( + delete e.success, + r.open( + i.extend( + { + type: 1, + btn: ['确定', '取消'], + content: l, + skin: 'layui-layer-prompt' + c('prompt'), + maxWidth: n.width(), + success: function (t) { + ;(s = t.find('.layui-layer-input')), + s.val(e.value || '').focus(), + 'function' == typeof f && f(t) + }, + resize: !1, + yes: function (i) { + var n = s.val() + '' === n + ? s.focus() + : n.length > (e.maxlength || 500) + ? r.tips( + '最多输入' + + (e.maxlength || 500) + + '个字数', + s, + { tips: 1 } + ) + : t && t(n, i, s) + }, + }, + e + ) + ) + ) + }), + (r.tab = function (e) { + e = e || {} + var t = e.tab || {}, + n = 'layui-this', + a = e.success + return ( + delete e.success, + r.open( + i.extend( + { + type: 1, + skin: 'layui-layer-tab' + c('tab'), + resize: !1, + title: (function () { + var e = t.length, + i = 1, + a = '' + if (e > 0) + for ( + a = + '' + + t[0].title + + ''; + i < e; + i++ + ) + a += '' + t[i].title + '' + return a + })(), + content: + '', + success: function (t) { + var o = t.find('.layui-layer-title').children(), + r = t + .find('.layui-layer-tabmain') + .children() + o.on('mousedown', function (t) { + t.stopPropagation + ? t.stopPropagation() + : (t.cancelBubble = !0) + var a = i(this), + o = a.index() + a.addClass(n).siblings().removeClass(n), + r.eq(o).show().siblings().hide(), + 'function' == typeof e.change && + e.change(o) + }), + 'function' == typeof a && a(t) + }, + }, + e + ) + ) + ) + }), + (r.photos = function (t, n, a) { + function o(e, t, i) { + var n = new Image() + return ( + (n.src = e), + n.complete + ? t(n) + : ((n.onload = function () { + ;(n.onload = null), t(n) + }), + void (n.onerror = function (e) { + ;(n.onerror = null), i(e) + })) + ) + } + var s = {} + if (((t = t || {}), t.photos)) { + var l = t.photos.constructor === Object, + f = l ? t.photos : {}, + u = f.data || [], + d = f.start || 0 + ;(s.imgIndex = (0 | d) + 1), (t.img = t.img || 'img') + var y = t.success + if ((delete t.success, l)) { + if (0 === u.length) + return r.msg('没有图片') + } else { + var p = i(t.photos), + h = function () { + ;(u = []), + p.find(t.img).each(function (e) { + var t = i(this) + t.attr('layer-index', e), + u.push({ + alt: t.attr('alt'), + pid: t.attr('layer-pid'), + src: + t.attr('layer-src') || + t.attr('src'), + thumb: t.attr('src'), + }) + }) + } + if ((h(), 0 === u.length)) return + if ( + (n || + p.on('click', t.img, function () { + var e = i(this), + n = e.attr('layer-index') + r.photos( + i.extend(t, { + photos: { + start: n, + data: u, + tab: t.tab, + }, + full: t.full, + }), + !0 + ), + h() + }), + !n) + ) + return + } + ;(s.imgprev = function (e) { + s.imgIndex--, + s.imgIndex < 1 && (s.imgIndex = u.length), + s.tabimg(e) + }), + (s.imgnext = function (e, t) { + s.imgIndex++, + (s.imgIndex > u.length && ((s.imgIndex = 1), t)) || + s.tabimg(e) + }), + (s.keyup = function (e) { + if (!s.end) { + var t = e.keyCode + e.preventDefault(), + 37 === t + ? s.imgprev(!0) + : 39 === t + ? s.imgnext(!0) + : 27 === t && r.close(s.index) + } + }), + (s.tabimg = function (e) { + if (!(u.length <= 1)) + return ( + (f.start = s.imgIndex - 1), + r.close(s.index), + r.photos(t, !0, e) + ) + }), + (s.event = function () { + s.bigimg.hover( + function () { + s.imgsee.show() + }, + function () { + s.imgsee.hide() + } + ), + s.bigimg + .find('.layui-layer-imgprev') + .on('click', function (e) { + e.preventDefault(), s.imgprev() + }), + s.bigimg + .find('.layui-layer-imgnext') + .on('click', function (e) { + e.preventDefault(), s.imgnext() + }), + i(document).on('keyup', s.keyup) + }), + (s.loadi = r.load(1, { + shade: !('shade' in t) && 0.9, + scrollbar: !1, + })), + o( + u[d].src, + function (n) { + r.close(s.loadi), + (s.index = r.open( + i.extend( + { + type: 1, + id: 'layui-layer-photos', + area: (function () { + var a = [n.width, n.height], + o = [ + i(e).width() - 100, + i(e).height() - 100, + ] + if ( + !t.full && + (a[0] > o[0] || a[1] > o[1]) + ) { + var r = [ + a[0] / o[0], + a[1] / o[1], + ] + r[0] > r[1] + ? ((a[0] = a[0] / r[0]), + (a[1] = a[1] / r[0])) + : r[0] < r[1] && + ((a[0] = a[0] / r[1]), + (a[1] = a[1] / r[1])) + } + return [ + a[0] + 'px', + a[1] + 'px', + ] + })(), + title: !1, + shade: 0.9, + shadeClose: !0, + closeBtn: !1, + move: '.layui-layer-phimg img', + moveType: 1, + scrollbar: !1, + moveOut: !0, + isOutAnim: !1, + skin: + 'layui-layer-photos' + + c('photos'), + content: + '
' +
+												(u[d].alt || '') +
+												'
' + + (u.length > 1 + ? '' + : '') + + '
' + + (u[d].alt || '') + + '' + + s.imgIndex + + '/' + + u.length + + '
', + success: function (e, i) { + ;(s.bigimg = + e.find( + '.layui-layer-phimg' + )), + (s.imgsee = e.find( + '.layui-layer-imguide,.layui-layer-imgbar' + )), + s.event(e), + t.tab && t.tab(u[d], e), + 'function' == typeof y && + y(e) + }, + end: function () { + ;(s.end = !0), + i(document).off( + 'keyup', + s.keyup + ) + }, + }, + t + ) + )) + }, + function () { + r.close(s.loadi), + r.msg( + '当前图片地址异常
是否继续查看下一张?', + { + time: 3e4, + btn: [ + '下一张', + '不看了', + ], + yes: function () { + u.length > 1 && s.imgnext(!0, !0) + }, + } + ) + } + ) + } + }), + (o.run = function (t) { + ;(i = t), + (n = i(e)), + (l.html = i('html')), + (r.open = function (e) { + var t = new s(e) + return t.index + }) + }), + e.layui && layui.define + ? (r.ready(), + layui.define('jquery', function (t) { + ;(r.path = layui.cache.dir), + o.run(layui.$), + (e.layer = r), + t('layer', r) + })) + : 'function' == typeof define && define.amd + ? define(['jquery'], function () { + return o.run(e.jQuery), r + }) + : (function () { + o.run(e.jQuery), r.ready() + })() +})(window) +layui.define('jquery', function (e) { + 'use strict' + var t = layui.$, + i = { + fixbar: function (e) { + var i, + a, + n = 'layui-fixbar', + o = 'layui-fixbar-top', + r = t(document), + l = t('body') + ;(e = t.extend({ showHeight: 200 }, e)), + (e.bar1 = e.bar1 === !0 ? '' : e.bar1), + (e.bar2 = e.bar2 === !0 ? '' : e.bar2), + (e.bgcolor = e.bgcolor + ? 'background-color:' + e.bgcolor + : '') + var c = [e.bar1, e.bar2, ''], + g = t( + [ + '', + ].join('') + ), + u = g.find('.' + o), + s = function () { + var t = r.scrollTop() + t >= e.showHeight + ? i || (u.show(), (i = 1)) + : i && (u.hide(), (i = 0)) + } + t('.' + n)[0] || + ('object' == typeof e.css && g.css(e.css), + l.append(g), + s(), + g.find('li').on('click', function () { + var i = t(this), + a = i.attr('lay-type') + 'top' === a && + t('html,body').animate({ scrollTop: 0 }, 200), + e.click && e.click.call(this, a) + }), + r.on('scroll', function () { + clearTimeout(a), + (a = setTimeout(function () { + s() + }, 100)) + })) + }, + countdown: function (e, t, i) { + var a = this, + n = 'function' == typeof t, + o = new Date(e).getTime(), + r = new Date(!t || n ? new Date().getTime() : t).getTime(), + l = o - r, + c = [ + Math.floor(l / 864e5), + Math.floor(l / 36e5) % 24, + Math.floor(l / 6e4) % 60, + Math.floor(l / 1e3) % 60, + ] + n && (i = t) + var g = setTimeout(function () { + a.countdown(e, r + 1e3, i) + }, 1e3) + return ( + i && i(l > 0 ? c : [0, 0, 0, 0], t, g), + l <= 0 && clearTimeout(g), + g + ) + }, + timeAgo: function (e, t) { + var i = this, + a = [[], []], + n = new Date().getTime() - new Date(e).getTime() + return n > 26784e5 + ? ((n = new Date(e)), + (a[0][0] = i.digit(n.getFullYear(), 4)), + (a[0][1] = i.digit(n.getMonth() + 1)), + (a[0][2] = i.digit(n.getDate())), + t || + ((a[1][0] = i.digit(n.getHours())), + (a[1][1] = i.digit(n.getMinutes())), + (a[1][2] = i.digit(n.getSeconds()))), + a[0].join('-') + ' ' + a[1].join(':')) + : n >= 864e5 + ? ((n / 1e3 / 60 / 60 / 24) | 0) + '天前' + : n >= 36e5 + ? ((n / 1e3 / 60 / 60) | 0) + '小时前' + : n >= 18e4 + ? ((n / 1e3 / 60) | 0) + '分钟前' + : n < 0 + ? '未来' + : '刚刚' + }, + digit: function (e, t) { + var i = '' + ;(e = String(e)), (t = t || 2) + for (var a = e.length; a < t; a++) i += '0' + return e < Math.pow(10, t) ? i + (0 | e) : e + }, + toDateString: function (e, t) { + var i = this, + a = new Date(e || new Date()), + n = [ + i.digit(a.getFullYear(), 4), + i.digit(a.getMonth() + 1), + i.digit(a.getDate()), + ], + o = [ + i.digit(a.getHours()), + i.digit(a.getMinutes()), + i.digit(a.getSeconds()), + ] + return ( + (t = t || 'yyyy-MM-dd HH:mm:ss'), + t + .replace(/yyyy/g, n[0]) + .replace(/MM/g, n[1]) + .replace(/dd/g, n[2]) + .replace(/HH/g, o[0]) + .replace(/mm/g, o[1]) + .replace(/ss/g, o[2]) + ) + }, + escape: function (e) { + return String(e || '') + .replace(/&(?!#?[a-zA-Z0-9]+;)/g, '&') + .replace(//g, '>') + .replace(/'/g, ''') + .replace(/"/g, '"') + }, + unescape: function (e) { + return String(e || '') + .replace(/\&/g, '&') + .replace(/\</g, '<') + .replace(/\>/g, '>') + .replace(/\'/, "'") + .replace(/\"/, '"') + }, + event: function (e, a, n) { + var o = t('body') + return ( + (n = n || 'click'), + (a = i.event[e] = t.extend(!0, i.event[e], a) || {}), + (i.event.UTIL_EVENT_CALLBACK = + i.event.UTIL_EVENT_CALLBACK || {}), + o.off(n, '*[' + e + ']', i.event.UTIL_EVENT_CALLBACK[e]), + (i.event.UTIL_EVENT_CALLBACK[e] = function () { + var i = t(this), + n = i.attr(e) + 'function' == typeof a[n] && a[n].call(this, i) + }), + o.on(n, '*[' + e + ']', i.event.UTIL_EVENT_CALLBACK[e]), + a + ) + }, + } + e('util', i) +}) +layui.define('jquery', function (t) { + 'use strict' + var a = layui.$, + i = (layui.hint(), layui.device()), + e = 'element', + l = 'layui-this', + n = 'layui-show', + s = function () { + this.config = {} + } + ;(s.prototype.set = function (t) { + var i = this + return a.extend(!0, i.config, t), i + }), + (s.prototype.on = function (t, a) { + return layui.onevent.call(this, e, t, a) + }), + (s.prototype.tabAdd = function (t, i) { + var e = '.layui-tab-title', + l = a('.layui-tab[lay-filter=' + t + ']'), + n = l.children(e), + s = n.children('.layui-tab-bar'), + o = l.children('.layui-tab-content'), + r = + '
  • ' + + (i.title || 'unnaming') + + '
  • ' + return ( + s[0] ? s.before(r) : n.append(r), + o.append( + '
    ' + + (i.content || '') + + '
    ' + ), + f.hideTabMore(!0), + f.tabAuto(), + this + ) + }), + (s.prototype.tabDelete = function (t, i) { + var e = '.layui-tab-title', + l = a('.layui-tab[lay-filter=' + t + ']'), + n = l.children(e), + s = n.find('>li[lay-id="' + i + '"]') + return f.tabDelete(null, s), this + }), + (s.prototype.tabChange = function (t, i) { + var e = '.layui-tab-title', + l = a('.layui-tab[lay-filter=' + t + ']'), + n = l.children(e), + s = n.find('>li[lay-id="' + i + '"]') + return f.tabClick.call(s[0], null, null, s), this + }), + (s.prototype.tab = function (t) { + ;(t = t || {}), + b.on('click', t.headerElem, function (i) { + var e = a(this).index() + f.tabClick.call(this, i, e, null, t) + }) + }), + (s.prototype.progress = function (t, i) { + var e = 'layui-progress', + l = a('.' + e + '[lay-filter=' + t + ']'), + n = l.find('.' + e + '-bar'), + s = n.find('.' + e + '-text') + return n.css('width', i), s.text(i), this + }) + var o = '.layui-nav', + r = 'layui-nav-item', + c = 'layui-nav-bar', + u = 'layui-nav-tree', + d = 'layui-nav-child', + y = 'layui-nav-more', + h = 'layui-anim layui-anim-upbit', + f = { + tabClick: function (t, i, s, o) { + o = o || {} + var r = s || a(this), + i = i || r.parent().children('li').index(r), + c = o.headerElem + ? r.parent() + : r.parents('.layui-tab').eq(0), + u = o.bodyElem + ? a(o.bodyElem) + : c + .children('.layui-tab-content') + .children('.layui-tab-item'), + d = r.find('a'), + y = c.attr('lay-filter') + ;('javascript:;' !== d.attr('href') && + '_blank' === d.attr('target')) || + (r.addClass(l).siblings().removeClass(l), + u.eq(i).addClass(n).siblings().removeClass(n)), + layui.event.call(this, e, 'tab(' + y + ')', { + elem: c, + index: i, + }) + }, + tabDelete: function (t, i) { + var n = i || a(this).parent(), + s = n.index(), + o = n.parents('.layui-tab').eq(0), + r = o + .children('.layui-tab-content') + .children('.layui-tab-item'), + c = o.attr('lay-filter') + n.hasClass(l) && + (n.next()[0] + ? f.tabClick.call(n.next()[0], null, s + 1) + : n.prev()[0] && + f.tabClick.call(n.prev()[0], null, s - 1)), + n.remove(), + r.eq(s).remove(), + setTimeout(function () { + f.tabAuto() + }, 50), + layui.event.call(this, e, 'tabDelete(' + c + ')', { + elem: o, + index: s, + }) + }, + tabAuto: function () { + var t = 'layui-tab-more', + e = 'layui-tab-bar', + l = 'layui-tab-close', + n = this + a('.layui-tab').each(function () { + var s = a(this), + o = s.children('.layui-tab-title'), + r = + (s + .children('.layui-tab-content') + .children('.layui-tab-item'), + 'lay-stope="tabmore"'), + c = a( + '' + ) + if ( + (n === window && 8 != i.ie && f.hideTabMore(!0), + s.attr('lay-allowClose') && + o.find('li').each(function () { + var t = a(this) + if (!t.find('.' + l)[0]) { + var i = a( + '' + ) + i.on('click', f.tabDelete), t.append(i) + } + }), + 'string' != typeof s.attr('lay-unauto')) + ) + if (o.prop('scrollWidth') > o.outerWidth() + 1) { + if (o.find('.' + e)[0]) return + o.append(c), + s.attr('overflow', ''), + c.on('click', function (a) { + o[this.title ? 'removeClass' : 'addClass']( + t + ), + (this.title = this.title ? '' : '收缩') + }) + } else + o.find('.' + e).remove(), s.removeAttr('overflow') + }) + }, + hideTabMore: function (t) { + var i = a('.layui-tab-title') + ;(t !== !0 && 'tabmore' === a(t.target).attr('lay-stope')) || + (i.removeClass('layui-tab-more'), + i.find('.layui-tab-bar').attr('title', '')) + }, + clickThis: function () { + var t = a(this), + i = t.parents(o), + n = i.attr('lay-filter'), + s = t.parent(), + c = t.siblings('.' + d), + y = 'string' == typeof s.attr('lay-unselect') + ;('javascript:;' !== t.attr('href') && + '_blank' === t.attr('target')) || + y || + c[0] || + (i.find('.' + l).removeClass(l), s.addClass(l)), + i.hasClass(u) && + (c.removeClass(h), + c[0] && + (s[ + 'none' === c.css('display') + ? 'addClass' + : 'removeClass' + ](r + 'ed'), + 'all' === i.attr('lay-shrink') && + s.siblings().removeClass(r + 'ed'))), + layui.event.call(this, e, 'nav(' + n + ')', t) + }, + collapse: function () { + var t = a(this), + i = t.find('.layui-colla-icon'), + l = t.siblings('.layui-colla-content'), + s = t.parents('.layui-collapse').eq(0), + o = s.attr('lay-filter'), + r = 'none' === l.css('display') + if ('string' == typeof s.attr('lay-accordion')) { + var c = s.children('.layui-colla-item').children('.' + n) + c + .siblings('.layui-colla-title') + .children('.layui-colla-icon') + .html(''), + c.removeClass(n) + } + l[r ? 'addClass' : 'removeClass'](n), + i.html(r ? '' : ''), + layui.event.call(this, e, 'collapse(' + o + ')', { + title: t, + content: l, + show: r, + }) + }, + } + ;(s.prototype.init = function (t, e) { + var l = (function () { + return e ? '[lay-filter="' + e + '"]' : '' + })(), + s = { + tab: function () { + f.tabAuto.call({}) + }, + nav: function () { + var t = 200, + e = {}, + s = {}, + p = {}, + b = function (l, o, r) { + var c = a(this), + f = c.find('.' + d) + o.hasClass(u) + ? l.css({ + top: c.position().top, + height: c.children('a').outerHeight(), + opacity: 1, + }) + : (f.addClass(h), + l.css({ + left: + c.position().left + + parseFloat(c.css('marginLeft')), + top: + c.position().top + + c.height() - + l.height(), + }), + (e[r] = setTimeout( + function () { + l.css({ + width: c.width(), + opacity: 1, + }) + }, + i.ie && i.ie < 10 ? 0 : t + )), + clearTimeout(p[r]), + 'block' === f.css('display') && + clearTimeout(s[r]), + (s[r] = setTimeout(function () { + f.addClass(n), + c.find('.' + y).addClass(y + 'd') + }, 300))) + } + a(o + l).each(function (i) { + var l = a(this), + o = a(''), + h = l.find('.' + r) + l.find('.' + c)[0] || + (l.append(o), + h + .on('mouseenter', function () { + b.call(this, o, l, i) + }) + .on('mouseleave', function () { + l.hasClass(u) || + (clearTimeout(s[i]), + (s[i] = setTimeout(function () { + l.find('.' + d).removeClass(n), + l + .find('.' + y) + .removeClass(y + 'd') + }, 300))) + }), + l.on('mouseleave', function () { + clearTimeout(e[i]), + (p[i] = setTimeout(function () { + l.hasClass(u) + ? o.css({ + height: 0, + top: + o.position().top + + o.height() / 2, + opacity: 0, + }) + : o.css({ + width: 0, + left: + o.position().left + + o.width() / 2, + opacity: 0, + }) + }, t)) + })), + h.find('a').each(function () { + var t = a(this), + i = (t.parent(), t.siblings('.' + d)) + i[0] && + !t.children('.' + y)[0] && + t.append(''), + t + .off('click', f.clickThis) + .on('click', f.clickThis) + }) + }) + }, + breadcrumb: function () { + var t = '.layui-breadcrumb' + a(t + l).each(function () { + var t = a(this), + i = 'lay-separator', + e = t.attr(i) || '/', + l = t.find('a') + l.next('span[' + i + ']')[0] || + (l.each(function (t) { + t !== l.length - 1 && + a(this).after( + '' + e + '' + ) + }), + t.css('visibility', 'visible')) + }) + }, + progress: function () { + var t = 'layui-progress' + a('.' + t + l).each(function () { + var i = a(this), + e = i.find('.layui-progress-bar'), + l = e.attr('lay-percent') + e.css( + 'width', + (function () { + return /^.+\/.+$/.test(l) + ? 100 * new Function('return ' + l)() + '%' + : l + })() + ), + i.attr('lay-showPercent') && + setTimeout(function () { + e.html( + '' + + l + + '' + ) + }, 350) + }) + }, + collapse: function () { + var t = 'layui-collapse' + a('.' + t + l).each(function () { + var t = a(this).find('.layui-colla-item') + t.each(function () { + var t = a(this), + i = t.find('.layui-colla-title'), + e = t.find('.layui-colla-content'), + l = 'none' === e.css('display') + i.find('.layui-colla-icon').remove(), + i.append( + '' + + (l ? '' : '') + + '' + ), + i + .off('click', f.collapse) + .on('click', f.collapse) + }) + }) + }, + } + return s[t] + ? s[t]() + : layui.each(s, function (t, a) { + a() + }) + }), + (s.prototype.render = s.prototype.init) + var p = new s(), + b = a(document) + a(function () { + p.render() + }) + var v = '.layui-tab-title li' + b.on('click', v, f.tabClick), + b.on('click', f.hideTabMore), + a(window).on('resize', f.tabAuto), + t(e, p) +}) +layui.define('layer', function (e) { + 'use strict' + var t = layui.$, + i = layui.layer, + n = layui.hint(), + o = layui.device(), + a = { + config: {}, + set: function (e) { + var i = this + return (i.config = t.extend({}, i.config, e)), i + }, + on: function (e, t) { + return layui.onevent.call(this, r, e, t) + }, + }, + l = function () { + var e = this + return { + upload: function (t) { + e.upload.call(e, t) + }, + reload: function (t) { + e.reload.call(e, t) + }, + config: e.config, + } + }, + r = 'upload', + u = 'layui-upload-file', + c = 'layui-upload-form', + f = 'layui-upload-iframe', + s = 'layui-upload-choose', + p = function (e) { + var i = this + ;(i.config = t.extend({}, i.config, a.config, e)), i.render() + } + ;(p.prototype.config = { + accept: 'images', + exts: '', + auto: !0, + bindAction: '', + url: '', + field: 'file', + acceptMime: '', + method: 'post', + data: {}, + drag: !0, + size: 0, + number: 0, + multiple: !1, + }), + (p.prototype.render = function (e) { + var i = this, + e = i.config + ;(e.elem = t(e.elem)), + (e.bindAction = t(e.bindAction)), + i.file(), + i.events() + }), + (p.prototype.file = function () { + var e = this, + i = e.config, + n = (e.elemFile = t( + [ + '', + ].join('') + )), + a = i.elem.next() + ;(a.hasClass(u) || a.hasClass(c)) && a.remove(), + o.ie && + o.ie < 10 && + i.elem.wrap('
    '), + e.isFile() + ? ((e.elemFile = i.elem), (i.field = i.elem[0].name)) + : i.elem.after(n), + o.ie && o.ie < 10 && e.initIE() + }), + (p.prototype.initIE = function () { + var e = this, + i = e.config, + n = t( + '' + ), + o = t( + [ + '', + '', + ].join('') + ) + t('#' + f)[0] || t('body').append(n), + i.elem.next().hasClass(c) || + (e.elemFile.wrap(o), + i.elem.next('.' + c).append( + (function () { + var e = [] + return ( + layui.each(i.data, function (t, i) { + ;(i = 'function' == typeof i ? i() : i), + e.push( + '' + ) + }), + e.join('') + ) + })() + )) + }), + (p.prototype.msg = function (e) { + return i.msg(e, { icon: 2, shift: 6 }) + }), + (p.prototype.isFile = function () { + var e = this.config.elem[0] + if (e) + return ( + 'input' === e.tagName.toLocaleLowerCase() && + 'file' === e.type + ) + }), + (p.prototype.preview = function (e) { + var t = this + window.FileReader && + layui.each(t.chooseFiles, function (t, i) { + var n = new FileReader() + n.readAsDataURL(i), + (n.onload = function () { + e && e(t, i, this.result) + }) + }) + }), + (p.prototype.upload = function (e, i) { + var n, + a = this, + l = a.config, + r = a.elemFile[0], + u = function () { + var i = 0, + n = 0, + o = e || a.files || a.chooseFiles || r.files, + u = function () { + l.multiple && + i + n === a.fileLength && + 'function' == typeof l.allDone && + l.allDone({ + total: a.fileLength, + successful: i, + aborted: n, + }) + } + layui.each(o, function (e, o) { + var r = new FormData() + r.append(l.field, o), + layui.each(l.data, function (e, t) { + ;(t = 'function' == typeof t ? t() : t), + r.append(e, t) + }) + var c = { + url: l.url, + type: 'post', + data: r, + contentType: !1, + processData: !1, + dataType: 'json', + headers: l.headers || {}, + success: function (t) { + i++, d(e, t), u() + }, + error: function () { + n++, a.msg('请求上传接口出现异常'), m(e), u() + }, + } + 'function' == typeof l.progress && + (c.xhr = function () { + var e = t.ajaxSettings.xhr() + return ( + e.upload.addEventListener( + 'progress', + function (e) { + if (e.lengthComputable) { + var t = Math.floor( + (e.loaded / e.total) * 100 + ) + l.progress(t, l.item[0], e) + } + } + ), + e + ) + }), + t.ajax(c) + }) + }, + c = function () { + var e = t('#' + f) + a.elemFile.parent().submit(), + clearInterval(p.timer), + (p.timer = setInterval(function () { + var t, + i = e.contents().find('body') + try { + t = i.text() + } catch (n) { + a.msg('获取上传后的响应信息出现异常'), + clearInterval(p.timer), + m() + } + t && (clearInterval(p.timer), i.html(''), d(0, t)) + }, 30)) + }, + d = function (e, t) { + if ( + (a.elemFile.next('.' + s).remove(), + (r.value = ''), + 'object' != typeof t) + ) + try { + t = JSON.parse(t) + } catch (i) { + return (t = {}), a.msg('请对上传接口返回有效JSON') + } + 'function' == typeof l.done && + l.done(t, e || 0, function (e) { + a.upload(e) + }) + }, + m = function (e) { + l.auto && (r.value = ''), + 'function' == typeof l.error && + l.error(e || 0, function (e) { + a.upload(e) + }) + }, + h = l.exts, + v = (function () { + var t = [] + return ( + layui.each(e || a.chooseFiles, function (e, i) { + t.push(i.name) + }), + t + ) + })(), + g = { + preview: function (e) { + a.preview(e) + }, + upload: function (e, t) { + var i = {} + ;(i[e] = t), a.upload(i) + }, + pushFile: function () { + return ( + (a.files = a.files || {}), + layui.each(a.chooseFiles, function (e, t) { + a.files[e] = t + }), + a.files + ) + }, + resetFile: function (e, t, i) { + var n = new File([t], i) + ;(a.files = a.files || {}), (a.files[e] = n) + }, + }, + y = function () { + if ( + ('choose' !== i && !l.auto) || + (l.choose && l.choose(g), 'choose' !== i) + ) + return ( + l.before && l.before(g), + o.ie ? (o.ie > 9 ? u() : c()) : void u() + ) + } + if ( + ((v = + 0 === v.length + ? r.value.match(/[^\/\\]+\..+/g) || [] || '' + : v), + 0 !== v.length) + ) { + switch (l.accept) { + case 'file': + if ( + h && + !RegExp('\\w\\.(' + h + ')$', 'i').test(escape(v)) + ) + return ( + a.msg('选择的文件中包含不支持的格式'), + (r.value = '') + ) + break + case 'video': + if ( + !RegExp( + '\\w\\.(' + + (h || 'avi|mp4|wma|rmvb|rm|flash|3gp|flv') + + ')$', + 'i' + ).test(escape(v)) + ) + return ( + a.msg('选择的视频中包含不支持的格式'), + (r.value = '') + ) + break + case 'audio': + if ( + !RegExp( + '\\w\\.(' + (h || 'mp3|wav|mid') + ')$', + 'i' + ).test(escape(v)) + ) + return ( + a.msg('选择的音频中包含不支持的格式'), + (r.value = '') + ) + break + default: + if ( + (layui.each(v, function (e, t) { + RegExp( + '\\w\\.(' + + (h || 'jpg|png|gif|bmp|jpeg$') + + ')', + 'i' + ).test(escape(t)) || (n = !0) + }), + n) + ) + return ( + a.msg('选择的图片中包含不支持的格式'), + (r.value = '') + ) + } + if ( + ((a.fileLength = (function () { + var t = 0, + i = e || a.files || a.chooseFiles || r.files + return ( + layui.each(i, function () { + t++ + }), + t + ) + })()), + l.number && a.fileLength > l.number) + ) + return a.msg('同时最多只能上传的数量为:' + l.number) + if (l.size > 0 && !(o.ie && o.ie < 10)) { + var F + if ( + (layui.each(a.chooseFiles, function (e, t) { + if (t.size > 1024 * l.size) { + var i = l.size / 1024 + ;(i = + i >= 1 + ? i.toFixed(2) + 'MB' + : l.size + 'KB'), + (r.value = ''), + (F = i) + } + }), + F) + ) + return a.msg('文件不能超过' + F) + } + y() + } + }), + (p.prototype.reload = function (e) { + ;(e = e || {}), delete e.elem, delete e.bindAction + var i = this, + e = (i.config = t.extend({}, i.config, a.config, e)), + n = e.elem.next() + n.attr({ name: e.name, accept: e.acceptMime, multiple: e.multiple }) + }), + (p.prototype.events = function () { + var e = this, + i = e.config, + a = function (t) { + ;(e.chooseFiles = {}), + layui.each(t, function (t, i) { + var n = new Date().getTime() + e.chooseFiles[n + '-' + t] = i + }) + }, + l = function (t, n) { + var o = e.elemFile, + a = + t.length > 1 + ? t.length + '个文件' + : (t[0] || {}).name || + o[0].value.match(/[^\/\\]+\..+/g) || + [] || + '' + o.next().hasClass(s) && o.next().remove(), + e.upload(null, 'choose'), + e.isFile() || + i.choose || + o.after( + '' + + a + + '' + ) + } + i.elem.off('upload.start').on('upload.start', function () { + var o = t(this), + a = o.attr('lay-data') + if (a) + try { + ;(a = new Function('return ' + a)()), + (e.config = t.extend({}, i, a)) + } catch (l) { + n.error( + 'Upload element property lay-data configuration item has a syntax error: ' + + a + ) + } + ;(e.config.item = o), e.elemFile[0].click() + }), + (o.ie && o.ie < 10) || + i.elem + .off('upload.over') + .on('upload.over', function () { + var e = t(this) + e.attr('lay-over', '') + }) + .off('upload.leave') + .on('upload.leave', function () { + var e = t(this) + e.removeAttr('lay-over') + }) + .off('upload.drop') + .on('upload.drop', function (n, o) { + var r = t(this), + u = o.originalEvent.dataTransfer.files || [] + r.removeAttr('lay-over'), + a(u), + i.auto ? e.upload(u) : l(u) + }), + e.elemFile + .off('upload.change') + .on('upload.change', function () { + var t = this.files || [] + a(t), i.auto ? e.upload() : l(t) + }), + i.bindAction + .off('upload.action') + .on('upload.action', function () { + e.upload() + }), + i.elem.data('haveEvents') || + (e.elemFile.on('change', function () { + t(this).trigger('upload.change') + }), + i.elem.on('click', function () { + e.isFile() || t(this).trigger('upload.start') + }), + i.drag && + i.elem + .on('dragover', function (e) { + e.preventDefault(), + t(this).trigger('upload.over') + }) + .on('dragleave', function (e) { + t(this).trigger('upload.leave') + }) + .on('drop', function (e) { + e.preventDefault(), + t(this).trigger('upload.drop', e) + }), + i.bindAction.on('click', function () { + t(this).trigger('upload.action') + }), + i.elem.data('haveEvents', !0)) + }), + (a.render = function (e) { + var t = new p(e) + return l.call(t) + }), + e(r, a) +}) +layui.define(['jquery', 'laytpl', 'lay'], function (e) { + 'use strict' + var i = layui.$, + n = layui.laytpl, + t = layui.hint(), + a = layui.device(), + l = a.mobile ? 'click' : 'mousedown', + r = 'dropdown', + o = 'layui_' + r + '_index', + u = { + config: {}, + index: layui[r] ? layui[r].index + 1e4 : 0, + set: function (e) { + var n = this + return (n.config = i.extend({}, n.config, e)), n + }, + on: function (e, i) { + return layui.onevent.call(this, r, e, i) + }, + }, + d = function () { + var e = this, + i = e.config, + n = i.id + return ( + (d.that[n] = e), + { + config: i, + reload: function (i) { + e.reload.call(e, i) + }, + } + ) + }, + s = 'layui-dropdown', + m = 'layui-menu-item-up', + c = 'layui-menu-item-down', + p = 'layui-menu-body-title', + y = 'layui-menu-item-group', + f = 'layui-menu-item-parent', + v = 'layui-menu-item-divider', + g = 'layui-menu-item-checked', + h = 'layui-menu-item-checked2', + w = 'layui-menu-body-panel', + C = 'layui-menu-body-panel-left', + V = '.' + y + '>.' + p, + k = function (e) { + var n = this + ;(n.index = ++u.index), + (n.config = i.extend({}, n.config, u.config, e)), + n.init() + } + ;(k.prototype.config = { + trigger: 'click', + content: '', + className: '', + style: '', + show: !1, + isAllowSpread: !0, + isSpreadItem: !0, + data: [], + delay: 300, + }), + (k.prototype.reload = function (e) { + var n = this + ;(n.config = i.extend({}, n.config, e)), n.init(!0) + }), + (k.prototype.init = function (e) { + var n = this, + t = n.config, + a = (t.elem = i(t.elem)) + if (a.length > 1) + return ( + layui.each(a, function () { + u.render(i.extend({}, t, { elem: this })) + }), + n + ) + if (!e && a[0] && a.data(o)) { + var l = d.getThis(a.data(o)) + if (!l) return + return l.reload(t) + } + ;(t.id = 'id' in t ? t.id : n.index), + t.show && n.render(e), + n.events() + }), + (k.prototype.render = function (e) { + var t = this, + a = t.config, + r = i('body'), + s = function () { + var e = i( + '' + ) + return ( + a.data.length > 0 + ? m(e, a.data) + : e.html( + '
  • no menu
  • ' + ), + e + ) + }, + m = function (e, t) { + return ( + layui.each(t, function (t, l) { + var r = l.child && l.child.length > 0, + o = + 'isSpreadItem' in l + ? l.isSpreadItem + : a.isSpreadItem, + u = l.templet + ? n(l.templet).render(l) + : a.templet + ? n(a.templet).render(l) + : l.title, + d = (function () { + return ( + r && (l.type = l.type || 'parent'), + l.type + ? { + group: 'group', + parent: 'parent', + '-': '-', + }[l.type] || 'parent' + : '' + ) + })() + if ('-' === d || l.title || l.id || r) { + var s = i( + [ + '', + (function () { + var e = + 'href' in l + ? '' + + u + + '' + : u + return r + ? '
    ' + + e + + (function () { + return 'parent' === + d + ? '' + : 'group' === + d && + a.isAllowSpread + ? '' + : '' + })() + + '
    ' + : '
    ' + + e + + '
    ' + })(), + '', + ].join('') + ) + if ((s.data('item', l), r)) { + var c = i( + '
    ' + ), + y = i('') + 'parent' === d + ? (c.append(m(y, l.child)), s.append(c)) + : s.append(m(y, l.child)) + } + e.append(s) + } + }), + e + ) + }, + c = [ + '
    ', + '
    ', + ].join('') + ;('contextmenu' === a.trigger || lay.isTopElem(a.elem[0])) && + (e = !0), + (!e && a.elem.data(o + '_opened')) || + ((t.elemView = i(c)), + t.elemView.append(a.content || s()), + a.className && t.elemView.addClass(a.className), + a.style && t.elemView.attr('style', a.style), + (u.thisId = a.id), + t.remove(), + r.append(t.elemView), + a.elem.data(o + '_opened', !0), + t.position(), + (d.prevElem = t.elemView), + d.prevElem.data('prevElem', a.elem), + t.elemView.find('.layui-menu').on(l, function (e) { + lay.stope(e) + }), + t.elemView.find('.layui-menu li').on('click', function (e) { + var n = i(this), + l = n.data('item') || {}, + r = l.child && l.child.length > 0 + r || + '-' === l.type || + (t.remove(), + 'function' == typeof a.click && a.click(l, n)) + }), + t.elemView.find(V).on('click', function (e) { + var n = i(this), + t = n.parent(), + l = t.data('item') || {} + 'group' === l.type && a.isAllowSpread && d.spread(t) + }), + 'mouseenter' === a.trigger && + t.elemView + .on('mouseenter', function () { + clearTimeout(d.timer) + }) + .on('mouseleave', function () { + t.delayRemove() + })) + }), + (k.prototype.position = function (e) { + var i = this, + n = i.config + lay.position(n.elem[0], i.elemView[0], { + position: n.position, + e: i.e, + clickType: 'contextmenu' === n.trigger ? 'right' : null, + }) + }), + (k.prototype.remove = function () { + var e = this, + i = (e.config, d.prevElem) + i && + (i.data('prevElem') && + i.data('prevElem').data(o + '_opened', !1), + i.remove()) + }), + (k.prototype.delayRemove = function () { + var e = this, + i = e.config + clearTimeout(d.timer), + (d.timer = setTimeout(function () { + e.remove() + }, i.delay)) + }), + (k.prototype.events = function () { + var e = this, + i = e.config + 'hover' === i.trigger && (i.trigger = 'mouseenter'), + e.prevElem && e.prevElem.off(i.trigger, e.prevElemCallback), + (e.prevElem = i.elem), + (e.prevElemCallback = function (n) { + clearTimeout(d.timer), + (e.e = n), + e.render(), + n.preventDefault(), + 'function' == typeof i.ready && + i.ready(e.elemView, i.elem, e.e.target) + }), + i.elem.on(i.trigger, e.prevElemCallback), + 'mouseenter' === i.trigger && + i.elem.on('mouseleave', function () { + e.delayRemove() + }) + }), + (d.that = {}), + (d.getThis = function (e) { + var i = d.that[e] + return ( + i || + t.error( + e + ? r + " instance with ID '" + e + "' not found" + : 'ID argument required' + ), + i + ) + }), + (d.spread = function (e) { + var i = e.children('.' + p).find('.layui-icon') + e.hasClass(m) + ? (e.removeClass(m).addClass(c), + i.removeClass('layui-icon-down').addClass('layui-icon-up')) + : (e.removeClass(c).addClass(m), + i.removeClass('layui-icon-up').addClass('layui-icon-down')) + }), + !(function () { + var e = i(window), + n = i(document) + e.on('resize', function () { + if (u.thisId) { + var e = d.getThis(u.thisId) + if (e) { + if (!e.elemView[0] || !i('.' + s)[0]) return !1 + var n = e.config + 'contextmenu' === n.trigger ? e.remove() : e.position() + } + } + }), + n.on(l, function (e) { + if (u.thisId) { + var i = d.getThis(u.thisId) + if (i) { + var n = i.config + ;(!lay.isTopElem(n.elem[0]) && + 'contextmenu' !== n.trigger && + (e.target === n.elem[0] || + n.elem.find(e.target)[0] || + e.target === i.elemView[0] || + (i.elemView && + i.elemView.find(e.target)[0]))) || + i.remove() + } + } + }) + var t = '.layui-menu:not(.layui-dropdown-menu) li' + n.on('click', t, function (e) { + var n = i(this), + t = n.parents('.layui-menu').eq(0), + a = n.hasClass(y) || n.hasClass(f), + l = t.attr('lay-filter') || t.attr('id'), + o = lay.options(this) + n.hasClass(v) || + a || + (t.find('.' + g).removeClass(g), + t.find('.' + h).removeClass(h), + n.addClass(g), + n.parents('.' + f).addClass(h), + layui.event.call(this, r, 'click(' + l + ')', o)) + }), + n.on('click', t + V, function (e) { + var n = i(this), + t = n.parents('.' + y + ':eq(0)'), + a = lay.options(t[0]) + ;('isAllowSpread' in a && !a.isAllowSpread) || d.spread(t) + }) + var a = '.layui-menu .' + f + n.on('mouseenter', a, function (n) { + var t = i(this), + a = t.find('.' + w) + if (a[0]) { + var l = a[0].getBoundingClientRect() + l.right > e.width() && + (a.addClass(C), + (l = a[0].getBoundingClientRect()), + l.left < 0 && a.removeClass(C)), + l.bottom > e.height() && + a.eq(0).css('margin-top', -(l.bottom - e.height())) + } + }).on('mouseleave', a, function (e) { + var n = i(this), + t = n.children('.' + w) + t.removeClass(C), t.css('margin-top', 0) + }) + })(), + (u.reload = function (e, i) { + var n = d.getThis(e) + return n ? (n.reload(i), d.call(n)) : this + }), + (u.render = function (e) { + var i = new k(e) + return d.call(i) + }), + e(r, u) +}) +layui.define('jquery', function (e) { + 'use strict' + var i = layui.jquery, + t = { + config: {}, + index: layui.slider ? layui.slider.index + 1e4 : 0, + set: function (e) { + var t = this + return (t.config = i.extend({}, t.config, e)), t + }, + on: function (e, i) { + return layui.onevent.call(this, n, e, i) + }, + }, + a = function () { + var e = this, + i = e.config + return { + setValue: function (t, a) { + return (i.value = t), e.slide('set', t, a || 0) + }, + config: i, + } + }, + n = 'slider', + l = 'layui-disabled', + s = 'layui-slider', + r = 'layui-slider-bar', + o = 'layui-slider-wrap', + u = 'layui-slider-wrap-btn', + d = 'layui-slider-tips', + v = 'layui-slider-input', + c = 'layui-slider-input-txt', + p = 'layui-slider-input-btn', + m = 'layui-slider-hover', + f = function (e) { + var a = this + ;(a.index = ++t.index), + (a.config = i.extend({}, a.config, t.config, e)), + a.render() + } + ;(f.prototype.config = { + type: 'default', + min: 0, + max: 100, + value: 0, + step: 1, + showstep: !1, + tips: !0, + input: !1, + range: !1, + height: 200, + disabled: !1, + theme: '#009688', + }), + (f.prototype.render = function () { + var e = this, + t = e.config + if ( + (t.step < 1 && (t.step = 1), + t.max < t.min && (t.max = t.min + t.step), + t.range) + ) { + t.value = + 'object' == typeof t.value ? t.value : [t.min, t.value] + var a = Math.min(t.value[0], t.value[1]), + n = Math.max(t.value[0], t.value[1]) + ;(t.value[0] = a > t.min ? a : t.min), + (t.value[1] = n > t.min ? n : t.min), + (t.value[0] = t.value[0] > t.max ? t.max : t.value[0]), + (t.value[1] = t.value[1] > t.max ? t.max : t.value[1]) + var r = Math.floor( + ((t.value[0] - t.min) / (t.max - t.min)) * 100 + ), + v = Math.floor( + ((t.value[1] - t.min) / (t.max - t.min)) * 100 + ), + p = v - r + '%' + ;(r += '%'), (v += '%') + } else { + 'object' == typeof t.value && + (t.value = Math.min.apply(null, t.value)), + t.value < t.min && (t.value = t.min), + t.value > t.max && (t.value = t.max) + var p = + Math.floor(((t.value - t.min) / (t.max - t.min)) * 100) + + '%' + } + var m = t.disabled ? '#c2c2c2' : t.theme, + f = + '
    ' + + (t.tips ? '
    ' : '') + + '
    ' + + (t.range + ? '
    ' + : '') + + '
    ', + h = i(t.elem), + y = h.next('.' + s) + if ( + (y[0] && y.remove(), + (e.elemTemp = i(f)), + t.range + ? (e.elemTemp + .find('.' + o) + .eq(0) + .data('value', t.value[0]), + e.elemTemp + .find('.' + o) + .eq(1) + .data('value', t.value[1])) + : e.elemTemp.find('.' + o).data('value', t.value), + h.html(e.elemTemp), + 'vertical' === t.type && e.elemTemp.height(t.height + 'px'), + t.showstep) + ) { + for ( + var g = (t.max - t.min) / t.step, b = '', x = 1; + x < g + 1; + x++ + ) { + var T = (100 * x) / g + T < 100 && + (b += + '
    ') + } + e.elemTemp.append(b) + } + if (t.input && !t.range) { + var w = i( + '
    ' + ) + h.css('position', 'relative'), + h.append(w), + h + .find('.' + c) + .children('input') + .val(t.value), + 'vertical' === t.type + ? w.css({ left: 0, top: -48 }) + : e.elemTemp.css('margin-right', w.outerWidth() + 15) + } + t.disabled + ? (e.elemTemp.addClass(l), e.elemTemp.find('.' + u).addClass(l)) + : e.slide(), + e.elemTemp + .find('.' + u) + .on('mouseover', function () { + var a = + 'vertical' === t.type + ? t.height + : e.elemTemp[0].offsetWidth, + n = e.elemTemp.find('.' + o), + l = + 'vertical' === t.type + ? a - + i(this).parent()[0].offsetTop - + n.height() + : i(this).parent()[0].offsetLeft, + s = (l / a) * 100, + r = i(this).parent().data('value'), + u = t.setTips ? t.setTips(r) : r + e.elemTemp.find('.' + d).html(u), + 'vertical' === t.type + ? e.elemTemp + .find('.' + d) + .css({ + bottom: s + '%', + 'margin-bottom': '20px', + display: 'inline-block', + }) + : e.elemTemp + .find('.' + d) + .css({ + left: s + '%', + display: 'inline-block', + }) + }) + .on('mouseout', function () { + e.elemTemp.find('.' + d).css('display', 'none') + }) + }), + (f.prototype.slide = function (e, t, a) { + var n = this, + l = n.config, + s = n.elemTemp, + f = function () { + return 'vertical' === l.type ? l.height : s[0].offsetWidth + }, + h = s.find('.' + o), + y = s.next('.' + v), + g = y + .children('.' + c) + .children('input') + .val(), + b = 100 / ((l.max - l.min) / Math.ceil(l.step)), + x = function (e, i) { + ;(e = + Math.ceil(e) * b > 100 + ? Math.ceil(e) * b + : Math.round(e) * b), + (e = e > 100 ? 100 : e), + h + .eq(i) + .css( + 'vertical' === l.type ? 'bottom' : 'left', + e + '%' + ) + var t = T(h[0].offsetLeft), + a = l.range ? T(h[1].offsetLeft) : 0 + 'vertical' === l.type + ? (s + .find('.' + d) + .css({ + bottom: e + '%', + 'margin-bottom': '20px', + }), + (t = T(f() - h[0].offsetTop - h.height())), + (a = l.range + ? T(f() - h[1].offsetTop - h.height()) + : 0)) + : s.find('.' + d).css('left', e + '%'), + (t = t > 100 ? 100 : t), + (a = a > 100 ? 100 : a) + var n = Math.min(t, a), + o = Math.abs(t - a) + 'vertical' === l.type + ? s + .find('.' + r) + .css({ height: o + '%', bottom: n + '%' }) + : s.find('.' + r).css({ width: o + '%', left: n + '%' }) + var u = l.min + Math.round(((l.max - l.min) * e) / 100) + if ( + ((g = u), + y + .children('.' + c) + .children('input') + .val(g), + h.eq(i).data('value', u), + s.find('.' + d).html(l.setTips ? l.setTips(u) : u), + l.range) + ) { + var v = [h.eq(0).data('value'), h.eq(1).data('value')] + v[0] > v[1] && v.reverse() + } + l.change && l.change(l.range ? v : u) + }, + T = function (e) { + var i = ((e / f()) * 100) / b, + t = Math.round(i) * b + return e == f() && (t = Math.ceil(i) * b), t + }, + w = i( + [ + '
    f() && (r = f()) + var o = ((r / f()) * 100) / b + x(o, e), + t.addClass(m), + s.find('.' + d).show(), + i.preventDefault() + }, + o = function () { + t.removeClass(m), s.find('.' + d).hide() + } + M(r, o) + }) + }), + s.on('click', function (e) { + var t = i('.' + u) + if ( + !t.is(event.target) && + 0 === t.has(event.target).length && + t.length + ) { + var a, + n = + 'vertical' === l.type + ? f() - e.clientY + i(this).offset().top + : e.clientX - i(this).offset().left + n < 0 && (n = 0), n > f() && (n = f()) + var s = ((n / f()) * 100) / b + ;(a = l.range + ? 'vertical' === l.type + ? Math.abs( + n - parseInt(i(h[0]).css('bottom')) + ) > + Math.abs(n - parseInt(i(h[1]).css('bottom'))) + ? 1 + : 0 + : Math.abs(n - h[0].offsetLeft) > + Math.abs(n - h[1].offsetLeft) + ? 1 + : 0 + : 0), + x(s, a), + e.preventDefault() + } + }), + y + .children('.' + p) + .children('i') + .each(function (e) { + i(this).on('click', function () { + ;(g = y + .children('.' + c) + .children('input') + .val()), + (g = + 1 == e + ? g - l.step < l.min + ? l.min + : Number(g) - l.step + : Number(g) + l.step > l.max + ? l.max + : Number(g) + l.step) + var i = (((g - l.min) / (l.max - l.min)) * 100) / b + x(i, 0) + }) + }) + var q = function () { + var e = this.value + ;(e = isNaN(e) ? 0 : e), + (e = e < l.min ? l.min : e), + (e = e > l.max ? l.max : e), + (this.value = e) + var i = (((e - l.min) / (l.max - l.min)) * 100) / b + x(i, 0) + } + y.children('.' + c) + .children('input') + .on('keydown', function (e) { + 13 === e.keyCode && (e.preventDefault(), q.call(this)) + }) + .on('change', q) + }), + (f.prototype.events = function () { + var e = this + e.config + }), + (t.render = function (e) { + var i = new f(e) + return a.call(i) + }), + e(n, t) +}) +layui.define('jquery', function (e) { + 'use strict' + var i = layui.jquery, + o = { + config: {}, + index: layui.colorpicker ? layui.colorpicker.index + 1e4 : 0, + set: function (e) { + var o = this + return (o.config = i.extend({}, o.config, e)), o + }, + on: function (e, i) { + return layui.onevent.call(this, 'colorpicker', e, i) + }, + }, + r = function () { + var e = this, + i = e.config + return { config: i } + }, + t = 'colorpicker', + n = 'layui-show', + l = 'layui-colorpicker', + c = '.layui-colorpicker-main', + a = 'layui-icon-down', + s = 'layui-icon-close', + f = 'layui-colorpicker-trigger-span', + d = 'layui-colorpicker-trigger-i', + u = 'layui-colorpicker-side', + p = 'layui-colorpicker-side-slider', + g = 'layui-colorpicker-basis', + v = 'layui-colorpicker-alpha-bgcolor', + h = 'layui-colorpicker-alpha-slider', + m = 'layui-colorpicker-basis-cursor', + b = 'layui-colorpicker-main-input', + k = function (e) { + var i = { h: 0, s: 0, b: 0 }, + o = Math.min(e.r, e.g, e.b), + r = Math.max(e.r, e.g, e.b), + t = r - o + return ( + (i.b = r), + (i.s = 0 != r ? (255 * t) / r : 0), + 0 != i.s + ? e.r == r + ? (i.h = (e.g - e.b) / t) + : e.g == r + ? (i.h = 2 + (e.b - e.r) / t) + : (i.h = 4 + (e.r - e.g) / t) + : (i.h = -1), + r == o && (i.h = 0), + (i.h *= 60), + i.h < 0 && (i.h += 360), + (i.s *= 100 / 255), + (i.b *= 100 / 255), + i + ) + }, + y = function (e) { + var e = e.indexOf('#') > -1 ? e.substring(1) : e + if (3 == e.length) { + var i = e.split('') + e = i[0] + i[0] + i[1] + i[1] + i[2] + i[2] + } + e = parseInt(e, 16) + var o = { r: e >> 16, g: (65280 & e) >> 8, b: 255 & e } + return k(o) + }, + x = function (e) { + var i = {}, + o = e.h, + r = (255 * e.s) / 100, + t = (255 * e.b) / 100 + if (0 == r) i.r = i.g = i.b = t + else { + var n = t, + l = ((255 - r) * t) / 255, + c = ((n - l) * (o % 60)) / 60 + 360 == o && (o = 0), + o < 60 + ? ((i.r = n), (i.b = l), (i.g = l + c)) + : o < 120 + ? ((i.g = n), (i.b = l), (i.r = n - c)) + : o < 180 + ? ((i.g = n), (i.r = l), (i.b = l + c)) + : o < 240 + ? ((i.b = n), (i.r = l), (i.g = n - c)) + : o < 300 + ? ((i.b = n), (i.g = l), (i.r = l + c)) + : o < 360 + ? ((i.r = n), (i.g = l), (i.b = n - c)) + : ((i.r = 0), (i.g = 0), (i.b = 0)) + } + return { + r: Math.round(i.r), + g: Math.round(i.g), + b: Math.round(i.b), + } + }, + C = function (e) { + var o = x(e), + r = [o.r.toString(16), o.g.toString(16), o.b.toString(16)] + return ( + i.each(r, function (e, i) { + 1 == i.length && (r[e] = '0' + i) + }), + r.join('') + ) + }, + P = function (e) { + var i = /[0-9]{1,3}/g, + o = e.match(i) || [] + return { r: o[0], g: o[1], b: o[2] } + }, + B = i(window), + w = i(document), + D = function (e) { + var r = this + ;(r.index = ++o.index), + (r.config = i.extend({}, r.config, o.config, e)), + r.render() + } + ;(D.prototype.config = { + color: '', + size: null, + alpha: !1, + format: 'hex', + predefine: !1, + colors: [ + '#009688', + '#5FB878', + '#1E9FFF', + '#FF5722', + '#FFB800', + '#01AAED', + '#999', + '#c00', + '#ff8c00', + '#ffd700', + '#90ee90', + '#00ced1', + '#1e90ff', + '#c71585', + 'rgb(0, 186, 189)', + 'rgb(255, 120, 0)', + 'rgb(250, 212, 0)', + '#393D49', + 'rgba(0,0,0,.5)', + 'rgba(255, 69, 0, 0.68)', + 'rgba(144, 240, 144, 0.5)', + 'rgba(31, 147, 255, 0.73)', + ], + }), + (D.prototype.render = function () { + var e = this, + o = e.config, + r = i( + [ + '
    ', + '', + '', + '', + '', + '', + '
    ', + ].join('') + ), + t = i(o.elem) + o.size && r.addClass('layui-colorpicker-' + o.size), + t.addClass('layui-inline').html((e.elemColorBox = r)), + (e.color = e.elemColorBox.find('.' + f)[0].style.background), + e.events() + }), + (D.prototype.renderPicker = function () { + var e = this, + o = e.config, + r = e.elemColorBox[0], + t = (e.elemPicker = i( + [ + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + '
    ', + (function () { + if (o.predefine) { + var e = [ + '
    ', + ] + return ( + layui.each(o.colors, function (i, o) { + e.push( + [ + '
    ', + '
    ', + '
    ', + ].join('') + ) + }), + e.push('
    '), + e.join('') + ) + } + return '' + })(), + '
    ', + '
    ', + '', + '
    ', + '
    ', + '', + '', + '', + '
    ', + ].join('') + )) + e.elemColorBox.find('.' + f)[0] + i(c)[0] && i(c).data('index') == e.index + ? e.removePicker(D.thisElemInd) + : (e.removePicker(D.thisElemInd), i('body').append(t)), + (D.thisElemInd = e.index), + (D.thisColor = r.style.background), + e.position(), + e.pickerEvents() + }), + (D.prototype.removePicker = function (e) { + var o = this + o.config + return i('#layui-colorpicker' + (e || o.index)).remove(), o + }), + (D.prototype.position = function () { + var e = this, + i = e.config, + o = e.bindElem || e.elemColorBox[0], + r = e.elemPicker[0], + t = o.getBoundingClientRect(), + n = r.offsetWidth, + l = r.offsetHeight, + c = function (e) { + return ( + (e = e ? 'scrollLeft' : 'scrollTop'), + document.body[e] | document.documentElement[e] + ) + }, + a = function (e) { + return document.documentElement[ + e ? 'clientWidth' : 'clientHeight' + ] + }, + s = 5, + f = t.left, + d = t.bottom + ;(f -= (n - o.offsetWidth) / 2), + (d += s), + f + n + s > a('width') + ? (f = a('width') - n - s) + : f < s && (f = s), + d + l + s > a() && + ((d = t.top > l ? t.top - l : a() - l), (d -= 2 * s)), + i.position && (r.style.position = i.position), + (r.style.left = f + ('fixed' === i.position ? 0 : c(1)) + 'px'), + (r.style.top = d + ('fixed' === i.position ? 0 : c()) + 'px') + }), + (D.prototype.val = function () { + var e = this, + i = (e.config, e.elemColorBox.find('.' + f)), + o = e.elemPicker.find('.' + b), + r = i[0], + t = r.style.backgroundColor + if (t) { + var n = k(P(t)), + l = i.attr('lay-type') + if ( + (e.select(n.h, n.s, n.b), + 'torgb' === l && o.find('input').val(t), + 'rgba' === l) + ) { + var c = P(t) + if (3 == (t.match(/[0-9]{1,3}/g) || []).length) + o + .find('input') + .val( + 'rgba(' + c.r + ', ' + c.g + ', ' + c.b + ', 1)' + ), + e.elemPicker.find('.' + h).css('left', 280) + else { + o.find('input').val(t) + var a = + 280 * t.slice(t.lastIndexOf(',') + 1, t.length - 1) + e.elemPicker.find('.' + h).css('left', a) + } + e.elemPicker.find('.' + v)[0].style.background = + 'linear-gradient(to right, rgba(' + + c.r + + ', ' + + c.g + + ', ' + + c.b + + ', 0), rgb(' + + c.r + + ', ' + + c.g + + ', ' + + c.b + + '))' + } + } else + e.select(0, 100, 100), + o.find('input').val(''), + (e.elemPicker.find('.' + v)[0].style.background = ''), + e.elemPicker.find('.' + h).css('left', 280) + }), + (D.prototype.side = function () { + var e = this, + o = e.config, + r = e.elemColorBox.find('.' + f), + t = r.attr('lay-type'), + n = e.elemPicker.find('.' + u), + l = e.elemPicker.find('.' + p), + c = e.elemPicker.find('.' + g), + y = e.elemPicker.find('.' + m), + C = e.elemPicker.find('.' + v), + w = e.elemPicker.find('.' + h), + D = (l[0].offsetTop / 180) * 360, + E = 100 - ((y[0].offsetTop + 3) / 180) * 100, + H = ((y[0].offsetLeft + 3) / 260) * 100, + W = Math.round((w[0].offsetLeft / 280) * 100) / 100, + j = e.elemColorBox.find('.' + d), + F = e.elemPicker.find('.layui-colorpicker-pre').children('div'), + L = function (i, n, l, c) { + e.select(i, n, l) + var f = x({ h: i, s: n, b: l }) + if ( + (j.addClass(a).removeClass(s), + (r[0].style.background = + 'rgb(' + f.r + ', ' + f.g + ', ' + f.b + ')'), + 'torgb' === t && + e.elemPicker + .find('.' + b) + .find('input') + .val( + 'rgb(' + f.r + ', ' + f.g + ', ' + f.b + ')' + ), + 'rgba' === t) + ) { + var d = 0 + ;(d = 280 * c), + w.css('left', d), + e.elemPicker + .find('.' + b) + .find('input') + .val( + 'rgba(' + + f.r + + ', ' + + f.g + + ', ' + + f.b + + ', ' + + c + + ')' + ), + (r[0].style.background = + 'rgba(' + + f.r + + ', ' + + f.g + + ', ' + + f.b + + ', ' + + c + + ')'), + (C[0].style.background = + 'linear-gradient(to right, rgba(' + + f.r + + ', ' + + f.g + + ', ' + + f.b + + ', 0), rgb(' + + f.r + + ', ' + + f.g + + ', ' + + f.b + + '))') + } + o.change && + o.change( + e.elemPicker + .find('.' + b) + .find('input') + .val() + ) + }, + M = i( + [ + '
    t && (r = t) + var l = (r / 180) * 360 + ;(D = l), L(l, H, E, W), e.preventDefault() + } + Y(r), e.preventDefault() + }), + n.on('click', function (e) { + var o = e.clientY - i(this).offset().top + o < 0 && (o = 0), + o > this.offsetHeight && (o = this.offsetHeight) + var r = (o / 180) * 360 + ;(D = r), L(r, H, E, W), e.preventDefault() + }), + y.on('mousedown', function (e) { + var i = this.offsetTop, + o = this.offsetLeft, + r = e.clientY, + t = e.clientX, + n = function (e) { + var n = i + (e.clientY - r), + l = o + (e.clientX - t), + a = c[0].offsetHeight - 3, + s = c[0].offsetWidth - 3 + n < -3 && (n = -3), + n > a && (n = a), + l < -3 && (l = -3), + l > s && (l = s) + var f = ((l + 3) / 260) * 100, + d = 100 - ((n + 3) / 180) * 100 + ;(E = d), (H = f), L(D, f, d, W), e.preventDefault() + } + layui.stope(e), Y(n), e.preventDefault() + }), + c.on('mousedown', function (e) { + var o = + e.clientY - + i(this).offset().top - + 3 + + B.scrollTop(), + r = + e.clientX - + i(this).offset().left - + 3 + + B.scrollLeft() + o < -3 && (o = -3), + o > this.offsetHeight - 3 && + (o = this.offsetHeight - 3), + r < -3 && (r = -3), + r > this.offsetWidth - 3 && (r = this.offsetWidth - 3) + var t = ((r + 3) / 260) * 100, + n = 100 - ((o + 3) / 180) * 100 + ;(E = n), + (H = t), + L(D, t, n, W), + e.preventDefault(), + y.trigger(e, 'mousedown') + }), + w.on('mousedown', function (e) { + var i = this.offsetLeft, + o = e.clientX, + r = function (e) { + var r = i + (e.clientX - o), + t = C[0].offsetWidth + r < 0 && (r = 0), r > t && (r = t) + var n = Math.round((r / 280) * 100) / 100 + ;(W = n), L(D, H, E, n), e.preventDefault() + } + Y(r), e.preventDefault() + }), + C.on('click', function (e) { + var o = e.clientX - i(this).offset().left + o < 0 && (o = 0), + o > this.offsetWidth && (o = this.offsetWidth) + var r = Math.round((o / 280) * 100) / 100 + ;(W = r), L(D, H, E, r), e.preventDefault() + }), + F.each(function () { + i(this).on('click', function () { + i(this) + .parent('.layui-colorpicker-pre') + .addClass('selected') + .siblings() + .removeClass('selected') + var e, + o = this.style.backgroundColor, + r = k(P(o)), + t = o.slice(o.lastIndexOf(',') + 1, o.length - 1) + ;(D = r.h), + (H = r.s), + (E = r.b), + 3 == (o.match(/[0-9]{1,3}/g) || []).length && + (t = 1), + (W = t), + (e = 280 * t), + L(r.h, r.s, r.b, t) + }) + }) + }), + (D.prototype.select = function (e, i, o, r) { + var t = this, + n = (t.config, C({ h: e, s: 100, b: 100 })), + l = C({ h: e, s: i, b: o }), + c = (e / 360) * 180, + a = 180 - (o / 100) * 180 - 3, + s = (i / 100) * 260 - 3 + t.elemPicker.find('.' + p).css('top', c), + (t.elemPicker.find('.' + g)[0].style.background = '#' + n), + t.elemPicker.find('.' + m).css({ top: a, left: s }), + 'change' !== r && + t.elemPicker + .find('.' + b) + .find('input') + .val('#' + l) + }), + (D.prototype.pickerEvents = function () { + var e = this, + o = e.config, + r = e.elemColorBox.find('.' + f), + t = e.elemPicker.find('.' + b + ' input'), + n = { + clear: function (i) { + ;(r[0].style.background = ''), + e.elemColorBox + .find('.' + d) + .removeClass(a) + .addClass(s), + (e.color = ''), + o.done && o.done(''), + e.removePicker() + }, + confirm: function (i, n) { + var l = t.val(), + c = l, + f = {} + if (l.indexOf(',') > -1) { + if ( + ((f = k(P(l))), + e.select(f.h, f.s, f.b), + (r[0].style.background = c = '#' + C(f)), + (l.match(/[0-9]{1,3}/g) || []).length > 3 && + 'rgba' === r.attr('lay-type')) + ) { + var u = + 280 * + l.slice( + l.lastIndexOf(',') + 1, + l.length - 1 + ) + e.elemPicker.find('.' + h).css('left', u), + (r[0].style.background = l), + (c = l) + } + } else + (f = y(l)), + (r[0].style.background = c = '#' + C(f)), + e.elemColorBox + .find('.' + d) + .removeClass(s) + .addClass(a) + return 'change' === n + ? (e.select(f.h, f.s, f.b, n), + void (o.change && o.change(c))) + : ((e.color = l), + o.done && o.done(l), + void e.removePicker()) + }, + } + e.elemPicker.on('click', '*[colorpicker-events]', function () { + var e = i(this), + o = e.attr('colorpicker-events') + n[o] && n[o].call(this, e) + }), + t.on('keyup', function (e) { + var o = i(this) + n.confirm.call(this, o, 13 === e.keyCode ? null : 'change') + }) + }), + (D.prototype.events = function () { + var e = this, + o = e.config, + r = e.elemColorBox.find('.' + f) + e.elemColorBox.on('click', function () { + e.renderPicker(), i(c)[0] && (e.val(), e.side()) + }), + o.elem[0] && + !e.elemColorBox[0].eventHandler && + (w.on('click', function (o) { + if ( + !i(o.target).hasClass(l) && + !i(o.target).parents('.' + l)[0] && + !i(o.target).hasClass(c.replace(/\./g, '')) && + !i(o.target).parents(c)[0] && + e.elemPicker + ) { + if (e.color) { + var t = k(P(e.color)) + e.select(t.h, t.s, t.b) + } else + e.elemColorBox + .find('.' + d) + .removeClass(a) + .addClass(s) + ;(r[0].style.background = e.color || ''), + e.removePicker() + } + }), + B.on('resize', function () { + return !(!e.elemPicker || !i(c)[0]) && void e.position() + }), + (e.elemColorBox[0].eventHandler = !0)) + }), + (o.render = function (e) { + var i = new D(e) + return r.call(i) + }), + e(t, o) +}) +layui.define('layer', function (e) { + 'use strict' + var t = layui.$, + i = layui.layer, + a = layui.hint(), + n = layui.device(), + l = 'form', + r = '.layui-form', + s = 'layui-this', + o = 'layui-hide', + c = 'layui-disabled', + u = function () { + this.config = { + verify: { + required: [/[\S]+/, '必填项不能为空'], + phone: [/^1\d{10}$/, '请输入正确的手机号'], + email: [ + /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/, + '邮箱格式不正确', + ], + url: [ + /(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/, + '链接格式不正确', + ], + number: function (e) { + if (!e || isNaN(e)) return '只能填写数字' + }, + date: [ + /^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/, + '日期格式不正确', + ], + identity: [ + /(^\d{15}$)|(^\d{17}(x|X|\d)$)/, + '请输入正确的身份证号', + ], + }, + } + } + ;(u.prototype.set = function (e) { + var i = this + return t.extend(!0, i.config, e), i + }), + (u.prototype.verify = function (e) { + var i = this + return t.extend(!0, i.config.verify, e), i + }), + (u.prototype.on = function (e, t) { + return layui.onevent.call(this, l, e, t) + }), + (u.prototype.val = function (e, i) { + var a = this, + n = t(r + '[lay-filter="' + e + '"]') + return ( + n.each(function (e, a) { + var n = t(this) + layui.each(i, function (e, t) { + var i, + a = n.find('[name="' + e + '"]') + a[0] && + ((i = a[0].type), + 'checkbox' === i + ? (a[0].checked = t) + : 'radio' === i + ? a.each(function () { + this.value == t && (this.checked = !0) + }) + : a.val(t)) + }) + }), + f.render(null, e), + a.getValue(e) + ) + }), + (u.prototype.getValue = function (e, i) { + i = i || t(r + '[lay-filter="' + e + '"]').eq(0) + var a = {}, + n = {}, + l = i.find('input,select,textarea') + return ( + layui.each(l, function (e, t) { + if ( + ((t.name = (t.name || '').replace(/^\s*|\s*&/, '')), + t.name) + ) { + if (/^.*\[\]$/.test(t.name)) { + var i = t.name.match(/^(.*)\[\]$/g)[0] + ;(a[i] = 0 | a[i]), + (t.name = t.name.replace( + /^(.*)\[\]$/, + '$1[' + a[i]++ + ']' + )) + } + ;(/^checkbox|radio$/.test(t.type) && !t.checked) || + (n[t.name] = t.value) + } + }), + n + ) + }), + (u.prototype.render = function (e, i) { + var n = this, + u = t( + r + + (function () { + return i ? '[lay-filter="' + i + '"]' : '' + })() + ), + d = { + select: function () { + var e, + i = '请选择', + a = 'layui-form-select', + n = 'layui-select-title', + r = 'layui-select-none', + d = '', + f = u.find('select'), + v = function (i, l) { + ;(t(i.target).parent().hasClass(n) && !l) || + (t('.' + a).removeClass( + a + 'ed ' + a + 'up' + ), + e && d && e.val(d)), + (e = null) + }, + y = function (i, u, f) { + var y, + p = t(this), + m = i.find('.' + n), + k = m.find('input'), + g = i.find('dl'), + x = g.children('dd'), + b = this.selectedIndex + if (!u) { + var C = function () { + var e = + i.offset().top + + i.outerHeight() + + 5 - + h.scrollTop(), + t = g.outerHeight() + ;(b = p[0].selectedIndex), + i.addClass(a + 'ed'), + x.removeClass(o), + (y = null), + x + .eq(b) + .addClass(s) + .siblings() + .removeClass(s), + e + t > h.height() && + e >= t && + i.addClass(a + 'up'), + T() + }, + w = function (e) { + i.removeClass(a + 'ed ' + a + 'up'), + k.blur(), + (y = null), + e || + $(k.val(), function (e) { + var i = + p[0].selectedIndex + e && + ((d = t( + p[0].options[i] + ).html()), + 0 === i && + d === + k.attr( + 'placeholder' + ) && + (d = ''), + k.val(d || '')) + }) + }, + T = function () { + var e = g.children('dd.' + s) + if (e[0]) { + var t = e.position().top, + i = g.height(), + a = e.height() + t > i && + g.scrollTop( + t + + g.scrollTop() - + i + + a - + 5 + ), + t < 0 && + g.scrollTop( + t + + g.scrollTop() - + 5 + ) + } + } + m.on('click', function (e) { + i.hasClass(a + 'ed') + ? w() + : (v(e, !0), C()), + g.find('.' + r).remove() + }), + m + .find('.layui-edge') + .on('click', function () { + k.focus() + }), + k + .on('keyup', function (e) { + var t = e.keyCode + 9 === t && C() + }) + .on('keydown', function (e) { + var t = e.keyCode + 9 === t && w() + var i = function (t, a) { + var n, l + e.preventDefault() + var r = (function () { + var e = g.children( + 'dd.' + s + ) + if ( + g.children( + 'dd.' + o + )[0] && + 'next' === t + ) { + var i = g.children( + 'dd:not(.' + + o + + ',.' + + c + + ')' + ), + n = i + .eq(0) + .index() + if ( + n >= 0 && + n < e.index() && + !i.hasClass(s) + ) + return i + .eq(0) + .prev()[0] + ? i + .eq( + 0 + ) + .prev() + : g.children( + ':last' + ) + } + return a && a[0] + ? a + : y && y[0] + ? y + : e + })() + return ( + (l = r[t]()), + (n = r[t]( + 'dd:not(.' + o + ')' + )), + l[0] + ? ((y = r[t]()), + (n[0] && + !n.hasClass( + c + )) || + !y[0] + ? (n + .addClass( + s + ) + .siblings() + .removeClass( + s + ), + void T()) + : i(t, y)) + : (y = null) + ) + } + 38 === t && i('prev'), + 40 === t && i('next'), + 13 === t && + (e.preventDefault(), + g + .children('dd.' + s) + .trigger('click')) + }) + var $ = function (e, i, a) { + var n = 0 + layui.each(x, function () { + var i = t(this), + l = i.text(), + r = l.indexOf(e) === -1 + ;('' === e || 'blur' === a + ? e !== l + : r) && n++, + 'keyup' === a && + i[ + r + ? 'addClass' + : 'removeClass' + ](o) + }) + var l = n === x.length + return i(l), l + }, + q = function (e) { + var t = this.value, + i = e.keyCode + return ( + 9 !== i && + 13 !== i && + 37 !== i && + 38 !== i && + 39 !== i && + 40 !== i && + ($( + t, + function (e) { + e + ? g.find( + '.' + r + )[0] || + g.append( + '

    无匹配项

    ' + ) + : g + .find( + '.' + r + ) + .remove() + }, + 'keyup' + ), + '' === t && + g.find('.' + r).remove(), + void T()) + ) + } + f && + k + .on('keyup', q) + .on('blur', function (i) { + var a = p[0].selectedIndex + ;(e = k), + (d = t( + p[0].options[a] + ).html()), + 0 === a && + d === + k.attr( + 'placeholder' + ) && + (d = ''), + setTimeout(function () { + $( + k.val(), + function (e) { + d || k.val('') + }, + 'blur' + ) + }, 200) + }), + x.on('click', function () { + var e = t(this), + a = e.attr('lay-value'), + n = p.attr('lay-filter') + return ( + !e.hasClass(c) && + (e.hasClass('layui-select-tips') + ? k.val('') + : (k.val(e.text()), + e.addClass(s)), + e.siblings().removeClass(s), + p + .val(a) + .removeClass( + 'layui-form-danger' + ), + layui.event.call( + this, + l, + 'select(' + n + ')', + { + elem: p[0], + value: a, + othis: i, + } + ), + w(!0), + !1) + ) + }), + i + .find('dl>dt') + .on('click', function (e) { + return !1 + }), + t(document) + .off('click', v) + .on('click', v) + } + } + f.each(function (e, l) { + var r = t(this), + o = r.next('.' + a), + u = this.disabled, + d = l.value, + f = t(l.options[l.selectedIndex]), + v = l.options[0] + if ('string' == typeof r.attr('lay-ignore')) + return r.show() + var h = 'string' == typeof r.attr('lay-search'), + p = v ? (v.value ? i : v.innerHTML || i) : i, + m = t( + [ + '
    ', + '
    ', + '', + '
    ', + '
    ', + (function (e) { + var t = [] + return ( + layui.each(e, function (e, a) { + 0 !== e || a.value + ? 'optgroup' === + a.tagName.toLowerCase() + ? t.push( + '
    ' + + a.label + + '
    ' + ) + : t.push( + '
    ' + + a.innerHTML + + '
    ' + ) + : t.push( + '
    ' + + (a.innerHTML || + i) + + '
    ' + ) + }), + 0 === t.length && + t.push( + '
    没有选项
    ' + ), + t.join('') + ) + })(r.find('*')) + '
    ', + '
    ', + ].join('') + ) + o[0] && o.remove(), + r.after(m), + y.call(this, m, u, h) + }) + }, + checkbox: function () { + var e = { + checkbox: [ + 'layui-form-checkbox', + 'layui-form-checked', + 'checkbox', + ], + _switch: [ + 'layui-form-switch', + 'layui-form-onswitch', + 'switch', + ], + }, + i = u.find('input[type=checkbox]'), + a = function (e, i) { + var a = t(this) + e.on('click', function () { + var t = a.attr('lay-filter'), + n = (a.attr('lay-text') || '').split( + '|' + ) + a[0].disabled || + (a[0].checked + ? ((a[0].checked = !1), + e + .removeClass(i[1]) + .find('em') + .text(n[1])) + : ((a[0].checked = !0), + e + .addClass(i[1]) + .find('em') + .text(n[0])), + layui.event.call( + a[0], + l, + i[2] + '(' + t + ')', + { + elem: a[0], + value: a[0].value, + othis: e, + } + )) + }) + } + i.each(function (i, n) { + var l = t(this), + r = l.attr('lay-skin'), + s = (l.attr('lay-text') || '').split('|'), + o = this.disabled + 'switch' === r && (r = '_' + r) + var u = e[r] || e.checkbox + if ('string' == typeof l.attr('lay-ignore')) + return l.show() + var d = l.next('.' + u[0]), + f = t( + [ + '
    ', + (function () { + var e = n.title.replace(/\s/g, ''), + t = { + checkbox: [ + e + ? '' + + n.title + + '' + : '', + '', + ].join(''), + _switch: + '' + + ((n.checked + ? s[0] + : s[1]) || '') + + '', + } + return t[r] || t.checkbox + })(), + '
    ', + ].join('') + ) + d[0] && d.remove(), l.after(f), a.call(this, f, u) + }) + }, + radio: function () { + var e = 'layui-form-radio', + i = ['', ''], + a = u.find('input[type=radio]'), + n = function (a) { + var n = t(this), + s = 'layui-anim-scaleSpring' + a.on('click', function () { + var o = n[0].name, + c = n.parents(r), + u = n.attr('lay-filter'), + d = c.find( + 'input[name=' + + o.replace( + /(\.|#|\[|\])/g, + '\\$1' + ) + + ']' + ) + n[0].disabled || + (layui.each(d, function () { + var a = t(this).next('.' + e) + ;(this.checked = !1), + a.removeClass(e + 'ed'), + a + .find('.layui-icon') + .removeClass(s) + .html(i[1]) + }), + (n[0].checked = !0), + a.addClass(e + 'ed'), + a + .find('.layui-icon') + .addClass(s) + .html(i[0]), + layui.event.call( + n[0], + l, + 'radio(' + u + ')', + { + elem: n[0], + value: n[0].value, + othis: a, + } + )) + }) + } + a.each(function (a, l) { + var r = t(this), + s = r.next('.' + e), + o = this.disabled + if ('string' == typeof r.attr('lay-ignore')) + return r.show() + s[0] && s.remove() + var u = t( + [ + '
    ', + '' + + i[l.checked ? 0 : 1] + + '', + '
    ' + + (function () { + var e = l.title || '' + return ( + 'string' == + typeof r + .next() + .attr('lay-radio') && + ((e = r.next().html()), + r.next().remove()), + e + ) + })() + + '
    ', + '
    ', + ].join('') + ) + r.after(u), n.call(this, u) + }) + }, + } + return ( + e + ? d[e] + ? d[e]() + : a.error('不支持的' + e + '表单渲染') + : layui.each(d, function (e, t) { + t() + }), + n + ) + }) + var d = function () { + var e = null, + a = f.config.verify, + s = 'layui-form-danger', + o = {}, + c = t(this), + u = c.parents(r), + d = u.find('*[lay-verify]'), + v = c.parents('form')[0], + h = c.attr('lay-filter') + return ( + layui.each(d, function (l, r) { + var o = t(this), + c = o.attr('lay-verify').split('|'), + u = o.attr('lay-verType'), + d = o.val() + if ( + (o.removeClass(s), + layui.each(c, function (t, l) { + var c, + f = '', + v = 'function' == typeof a[l] + if (a[l]) { + var c = v ? (f = a[l](d, r)) : !a[l][0].test(d) + if ( + ((f = f || a[l][1]), + 'required' === l && + (f = o.attr('lay-reqText') || f), + c) + ) + return ( + 'tips' === u + ? i.tips( + f, + (function () { + return 'string' == + typeof o.attr( + 'lay-ignore' + ) || + ('select' !== + r.tagName.toLowerCase() && + !/^checkbox|radio$/.test( + r.type + )) + ? o + : o.next() + })(), + { tips: 1 } + ) + : 'alert' === u + ? i.alert(f, { + title: '提示', + shadeClose: !0, + }) + : /\bstring|number\b/.test( + typeof f + ) && + i.msg(f, { icon: 5, shift: 6 }), + n.android || + n.ios || + setTimeout(function () { + r.focus() + }, 7), + o.addClass(s), + (e = !0) + ) + } + }), + e) + ) + return e + }), + !e && + ((o = f.getValue(null, u)), + layui.event.call(this, l, 'submit(' + h + ')', { + elem: this, + form: v, + field: o, + })) + ) + }, + f = new u(), + v = t(document), + h = t(window) + t(function () { + f.render() + }), + v.on('reset', r, function () { + var e = t(this).attr('lay-filter') + setTimeout(function () { + f.render(null, e) + }, 50) + }), + v.on('submit', r, d).on('click', '*[lay-submit]', d), + e(l, f) +}) +layui.define('form', function (e) { + 'use strict' + var i = layui.$, + a = layui.form, + n = layui.layer, + t = 'tree', + r = { + config: {}, + index: layui[t] ? layui[t].index + 1e4 : 0, + set: function (e) { + var a = this + return (a.config = i.extend({}, a.config, e)), a + }, + on: function (e, i) { + return layui.onevent.call(this, t, e, i) + }, + }, + l = function () { + var e = this, + i = e.config, + a = i.id || e.index + return ( + (l.that[a] = e), + (l.config[a] = i), + { + config: i, + reload: function (i) { + e.reload.call(e, i) + }, + getChecked: function () { + return e.getChecked.call(e) + }, + setChecked: function (i) { + return e.setChecked.call(e, i) + }, + } + ) + }, + c = 'layui-hide', + d = 'layui-disabled', + s = 'layui-tree-set', + o = 'layui-tree-iconClick', + h = 'layui-icon-addition', + u = 'layui-icon-subtraction', + p = 'layui-tree-entry', + f = 'layui-tree-main', + y = 'layui-tree-txt', + v = 'layui-tree-pack', + C = 'layui-tree-spread', + k = 'layui-tree-setLineShort', + m = 'layui-tree-showLine', + x = 'layui-tree-lineExtend', + b = function (e) { + var a = this + ;(a.index = ++r.index), + (a.config = i.extend({}, a.config, r.config, e)), + a.render() + } + ;(b.prototype.config = { + data: [], + showCheckbox: !1, + showLine: !0, + accordion: !1, + onlyIconControl: !1, + isJump: !1, + edit: !1, + text: { defaultNodeName: '未命名', none: '无数据' }, + }), + (b.prototype.reload = function (e) { + var a = this + layui.each(e, function (e, i) { + i.constructor === Array && delete a.config[e] + }), + (a.config = i.extend(!0, {}, a.config, e)), + a.render() + }), + (b.prototype.render = function () { + var e = this, + a = e.config + e.checkids = [] + var n = i( + '
    ' + ) + e.tree(n) + var t = (a.elem = i(a.elem)) + if (t[0]) { + if ( + ((e.key = a.id || e.index), + (e.elem = n), + (e.elemNone = i( + '
    ' + + a.text.none + + '
    ' + )), + t.html(e.elem), + 0 == e.elem.find('.layui-tree-set').length) + ) + return e.elem.append(e.elemNone) + a.showCheckbox && e.renderForm('checkbox'), + e.elem.find('.layui-tree-set').each(function () { + var e = i(this) + e.parent('.layui-tree-pack')[0] || + e.addClass('layui-tree-setHide'), + !e.next()[0] && + e + .parents('.layui-tree-pack') + .eq(1) + .hasClass('layui-tree-lineExtend') && + e.addClass(k), + e.next()[0] || + e.parents('.layui-tree-set').eq(0).next()[0] || + e.addClass(k) + }), + e.events() + } + }), + (b.prototype.renderForm = function (e) { + a.render(e, 'LAY-tree-' + this.index) + }), + (b.prototype.tree = function (e, a) { + var n = this, + t = n.config, + r = a || t.data + layui.each(r, function (a, r) { + var l = r.children && r.children.length > 0, + o = i( + '
    ' + ), + h = i( + [ + '
    ', + '
    ', + '
    ', + (function () { + return t.showLine + ? l + ? '' + : '' + : '' + })(), + (function () { + return t.showCheckbox + ? '' + : '' + })(), + (function () { + return t.isJump && r.href + ? '' + + (r.title || + r.label || + t.text.defaultNodeName) + + '' + : '' + + (r.title || + r.label || + t.text.defaultNodeName) + + '' + })(), + '
    ', + (function () { + if (!t.edit) return '' + var e = { + add: '', + update: '', + del: '', + }, + i = [ + '
    ', + ] + return ( + t.edit === !0 && + (t.edit = ['update', 'del']), + 'object' == typeof t.edit + ? (layui.each(t.edit, function (a, n) { + i.push(e[n] || '') + }), + i.join('') + '
    ') + : void 0 + ) + })(), + '
    ', + ].join('') + ) + l && (h.append(o), n.tree(o, r.children)), + e.append(h), + h.prev('.' + s)[0] && + h + .prev() + .children('.layui-tree-pack') + .addClass('layui-tree-showLine'), + l || + h + .parent('.layui-tree-pack') + .addClass('layui-tree-lineExtend'), + n.spread(h, r), + t.showCheckbox && + (r.checked && n.checkids.push(r.id), + n.checkClick(h, r)), + t.edit && n.operate(h, r) + }) + }), + (b.prototype.spread = function (e, a) { + var n = this, + t = n.config, + r = e.children('.' + p), + l = r.children('.' + f), + c = r.find('.' + o), + k = r.find('.' + y), + m = t.onlyIconControl ? c : l, + x = '' + m.on('click', function (i) { + var a = e.children('.' + v), + n = m.children('.layui-icon')[0] + ? m.children('.layui-icon') + : m.find('.layui-tree-icon').children('.layui-icon') + if (a[0]) { + if (e.hasClass(C)) + e.removeClass(C), + a.slideUp(200), + n.removeClass(u).addClass(h) + else if ( + (e.addClass(C), + a.slideDown(200), + n.addClass(u).removeClass(h), + t.accordion) + ) { + var r = e.siblings('.' + s) + r.removeClass(C), + r.children('.' + v).slideUp(200), + r + .find('.layui-tree-icon') + .children('.layui-icon') + .removeClass(u) + .addClass(h) + } + } else x = 'normal' + }), + k.on('click', function () { + var n = i(this) + n.hasClass(d) || + ((x = e.hasClass(C) + ? t.onlyIconControl + ? 'open' + : 'close' + : t.onlyIconControl + ? 'close' + : 'open'), + t.click && t.click({ elem: e, state: x, data: a })) + }) + }), + (b.prototype.setCheckbox = function (e, i, a) { + var n = this, + t = (n.config, a.prop('checked')) + if (!a.prop('disabled')) { + if ('object' == typeof i.children || e.find('.' + v)[0]) { + var r = e.find('.' + v).find('input[same="layuiTreeCheck"]') + r.each(function () { + this.disabled || (this.checked = t) + }) + } + var l = function (e) { + if (e.parents('.' + s)[0]) { + var i, + a = e.parent('.' + v), + n = a.parent(), + r = a.prev().find('input[same="layuiTreeCheck"]') + t + ? r.prop('checked', t) + : (a + .find('input[same="layuiTreeCheck"]') + .each(function () { + this.checked && (i = !0) + }), + i || r.prop('checked', !1)), + l(n) + } + } + l(e), n.renderForm('checkbox') + } + }), + (b.prototype.checkClick = function (e, a) { + var n = this, + t = n.config, + r = e.children('.' + p), + l = r.children('.' + f) + l.on('click', 'input[same="layuiTreeCheck"]+', function (r) { + layui.stope(r) + var l = i(this).prev(), + c = l.prop('checked') + l.prop('disabled') || + (n.setCheckbox(e, a, l), + t.oncheck && t.oncheck({ elem: e, checked: c, data: a })) + }) + }), + (b.prototype.operate = function (e, a) { + var t = this, + r = t.config, + l = e.children('.' + p), + d = l.children('.' + f) + l.children('.layui-tree-btnGroup').on( + 'click', + '.layui-icon', + function (l) { + layui.stope(l) + var f = i(this).data('type'), + b = e.children('.' + v), + g = { data: a, type: f, elem: e } + if ('add' == f) { + b[0] || + (r.showLine + ? (d.find('.' + o).addClass('layui-tree-icon'), + d + .find('.' + o) + .children('.layui-icon') + .addClass(h) + .removeClass('layui-icon-file')) + : d + .find('.layui-tree-iconArrow') + .removeClass(c), + e.append('
    ')) + var w = r.operate && r.operate(g), + N = {} + if ( + ((N.title = r.text.defaultNodeName), + (N.id = w), + t.tree(e.children('.' + v), [N]), + r.showLine) + ) + if (b[0]) + b.hasClass(x) || b.addClass(x), + e.find('.' + v).each(function () { + i(this) + .children('.' + s) + .last() + .addClass(k) + }), + b + .children('.' + s) + .last() + .prev() + .hasClass(k) + ? b + .children('.' + s) + .last() + .prev() + .removeClass(k) + : b + .children('.' + s) + .last() + .removeClass(k), + !e.parent('.' + v)[0] && + e.next()[0] && + b + .children('.' + s) + .last() + .removeClass(k) + else { + var T = e.siblings('.' + s), + L = 1, + A = e.parent('.' + v) + layui.each(T, function (e, a) { + i(a).children('.' + v)[0] || (L = 0) + }), + 1 == L + ? (T.children('.' + v).addClass(m), + T.children('.' + v) + .children('.' + s) + .removeClass(k), + e.children('.' + v).addClass(m), + A.removeClass(x), + A.children('.' + s) + .last() + .children('.' + v) + .children('.' + s) + .last() + .addClass(k)) + : e + .children('.' + v) + .children('.' + s) + .addClass(k) + } + if (!r.showCheckbox) return + if (d.find('input[same="layuiTreeCheck"]')[0].checked) { + var I = e + .children('.' + v) + .children('.' + s) + .last() + I.find('input[same="layuiTreeCheck"]')[0].checked = + !0 + } + t.renderForm('checkbox') + } else if ('update' == f) { + var F = d.children('.' + y).html() + d.children('.' + y).html(''), + d.append( + '' + ), + d.children('.layui-tree-editInput').val(F).focus() + var j = function (e) { + var i = e.val().trim() + ;(i = i ? i : r.text.defaultNodeName), + e.remove(), + d.children('.' + y).html(i), + (g.data.title = i), + r.operate && r.operate(g) + } + d.children('.layui-tree-editInput').blur(function () { + j(i(this)) + }), + d + .children('.layui-tree-editInput') + .on('keydown', function (e) { + 13 === e.keyCode && + (e.preventDefault(), j(i(this))) + }) + } else + n.confirm( + '确认删除该节点 "' + + (a.title || '') + + '" 吗?', + function (a) { + if ( + (r.operate && r.operate(g), + (g.status = 'remove'), + n.close(a), + !e.prev('.' + s)[0] && + !e.next('.' + s)[0] && + !e.parent('.' + v)[0]) + ) + return ( + e.remove(), + void t.elem.append(t.elemNone) + ) + if (e.siblings('.' + s).children('.' + p)[0]) { + if (r.showCheckbox) { + var l = function (e) { + if (e.parents('.' + s)[0]) { + var a = e + .siblings('.' + s) + .children('.' + p), + n = e + .parent('.' + v) + .prev(), + r = n.find( + 'input[same="layuiTreeCheck"]' + )[0], + c = 1, + d = 0 + 0 == r.checked && + (a.each(function (e, a) { + var n = i(a).find( + 'input[same="layuiTreeCheck"]' + )[0] + 0 != n.checked || + n.disabled || + (c = 0), + n.disabled || + (d = 1) + }), + 1 == c && + 1 == d && + ((r.checked = !0), + t.renderForm( + 'checkbox' + ), + l(n.parent('.' + s)))) + } + } + l(e) + } + if (r.showLine) { + var d = e.siblings('.' + s), + h = 1, + f = e.parent('.' + v) + layui.each(d, function (e, a) { + i(a).children('.' + v)[0] || (h = 0) + }), + 1 == h + ? (b[0] || + (f.removeClass(x), + d + .children('.' + v) + .addClass(m), + d + .children('.' + v) + .children('.' + s) + .removeClass(k)), + e.next()[0] + ? f + .children( + '.' + s + ) + .last() + .children( + '.' + v + ) + .children( + '.' + s + ) + .last() + .addClass(k) + : e + .prev() + .children( + '.' + v + ) + .children( + '.' + s + ) + .last() + .addClass(k), + e.next()[0] || + e.parents('.' + s)[1] || + e + .parents('.' + s) + .eq(0) + .next()[0] || + e + .prev('.' + s) + .addClass(k)) + : !e.next()[0] && + e.hasClass(k) && + e.prev().addClass(k) + } + } else { + var y = e.parent('.' + v).prev() + if (r.showLine) { + y + .find('.' + o) + .removeClass('layui-tree-icon'), + y + .find('.' + o) + .children('.layui-icon') + .removeClass(u) + .addClass('layui-icon-file') + var w = y.parents('.' + v).eq(0) + w.addClass(x), + w + .children('.' + s) + .each(function () { + i(this) + .children('.' + v) + .children('.' + s) + .last() + .addClass(k) + }) + } else + y.find( + '.layui-tree-iconArrow' + ).addClass(c) + e + .parents('.' + s) + .eq(0) + .removeClass(C), + e.parent('.' + v).remove() + } + e.remove() + } + ) + } + ) + }), + (b.prototype.events = function () { + var e = this, + a = e.config + e.elem.find('.layui-tree-checkedFirst') + e.setChecked(e.checkids), + e.elem.find('.layui-tree-search').on('keyup', function () { + var n = i(this), + t = n.val(), + r = n.nextAll(), + l = [] + r.find('.' + y).each(function () { + var e = i(this).parents('.' + p) + if (i(this).html().indexOf(t) != -1) { + l.push(i(this).parent()) + var a = function (e) { + e.addClass('layui-tree-searchShow'), + e.parent('.' + v)[0] && + a(e.parent('.' + v).parent('.' + s)) + } + a(e.parent('.' + s)) + } + }), + r.find('.' + p).each(function () { + var e = i(this).parent('.' + s) + e.hasClass('layui-tree-searchShow') || e.addClass(c) + }), + 0 == r.find('.layui-tree-searchShow').length && + e.elem.append(e.elemNone), + a.onsearch && a.onsearch({ elem: l }) + }), + e.elem.find('.layui-tree-search').on('keydown', function () { + i(this) + .nextAll() + .find('.' + p) + .each(function () { + var e = i(this).parent('.' + s) + e.removeClass('layui-tree-searchShow ' + c) + }), + i('.layui-tree-emptyText')[0] && + i('.layui-tree-emptyText').remove() + }) + }), + (b.prototype.getChecked = function () { + var e = this, + a = e.config, + n = [], + t = [] + e.elem.find('.layui-form-checked').each(function () { + n.push(i(this).prev()[0].value) + }) + var r = function (e, a) { + layui.each(e, function (e, t) { + layui.each(n, function (e, n) { + if (t.id == n) { + var l = i.extend({}, t) + return ( + delete l.children, + a.push(l), + t.children && + ((l.children = []), + r(t.children, l.children)), + !0 + ) + } + }) + }) + } + return r(i.extend({}, a.data), t), t + }), + (b.prototype.setChecked = function (e) { + var a = this + a.config + a.elem.find('.' + s).each(function (a, n) { + var t = i(this).data('id'), + r = i(n) + .children('.' + p) + .find('input[same="layuiTreeCheck"]'), + l = r.next() + if ('number' == typeof e) { + if (t == e) return r[0].checked || l.click(), !1 + } else + 'object' == typeof e && + layui.each(e, function (e, i) { + if (i == t && !r[0].checked) return l.click(), !0 + }) + }) + }), + (l.that = {}), + (l.config = {}), + (r.reload = function (e, i) { + var a = l.that[e] + return a.reload(i), l.call(a) + }), + (r.getChecked = function (e) { + var i = l.that[e] + return i.getChecked() + }), + (r.setChecked = function (e, i) { + var a = l.that[e] + return a.setChecked(i) + }), + (r.render = function (e) { + var i = new b(e) + return l.call(i) + }), + e(t, r) +}) +layui.define(['laytpl', 'form'], function (e) { + 'use strict' + var a = layui.$, + t = layui.laytpl, + i = layui.form, + n = 'transfer', + l = { + config: {}, + index: layui[n] ? layui[n].index + 1e4 : 0, + set: function (e) { + var t = this + return (t.config = a.extend({}, t.config, e)), t + }, + on: function (e, a) { + return layui.onevent.call(this, n, e, a) + }, + }, + r = function () { + var e = this, + a = e.config, + t = a.id || e.index + return ( + (r.that[t] = e), + (r.config[t] = a), + { + config: a, + reload: function (a) { + e.reload.call(e, a) + }, + getData: function () { + return e.getData.call(e) + }, + } + ) + }, + c = 'layui-hide', + o = 'layui-btn-disabled', + d = 'layui-none', + s = 'layui-transfer-box', + u = 'layui-transfer-header', + h = 'layui-transfer-search', + f = 'layui-transfer-active', + y = 'layui-transfer-data', + p = function (e) { + return ( + (e = e || {}), + [ + '
    ', + '
    ', + '', + '
    ', + '{{# if(d.data.showSearch){ }}', + '', + '{{# } }}', + '
      ', + '
      ', + ].join('') + ) + }, + v = [ + '
      ', + p({ index: 0, checkAllName: 'layTransferLeftCheckAll' }), + '
      ', + '', + '', + '
      ', + p({ index: 1, checkAllName: 'layTransferRightCheckAll' }), + '
      ', + ].join(''), + x = function (e) { + var t = this + ;(t.index = ++l.index), + (t.config = a.extend({}, t.config, l.config, e)), + t.render() + } + ;(x.prototype.config = { + title: ['列表一', '列表二'], + width: 200, + height: 360, + data: [], + value: [], + showSearch: !1, + id: '', + text: { none: '无数据', searchNone: '无匹配数据' }, + }), + (x.prototype.reload = function (e) { + var t = this + ;(t.config = a.extend({}, t.config, e)), t.render() + }), + (x.prototype.render = function () { + var e = this, + i = e.config, + n = (e.elem = a(t(v).render({ data: i, index: e.index }))), + l = (i.elem = a(i.elem)) + l[0] && + ((i.data = i.data || []), + (i.value = i.value || []), + (e.key = i.id || e.index), + l.html(e.elem), + (e.layBox = e.elem.find('.' + s)), + (e.layHeader = e.elem.find('.' + u)), + (e.laySearch = e.elem.find('.' + h)), + (e.layData = n.find('.' + y)), + (e.layBtn = n.find('.' + f + ' .layui-btn')), + e.layBox.css({ width: i.width, height: i.height }), + e.layData.css({ + height: (function () { + return ( + i.height - + e.layHeader.outerHeight() - + e.laySearch.outerHeight() - + 2 + ) + })(), + }), + e.renderData(), + e.events()) + }), + (x.prototype.renderData = function () { + var e = this, + a = + (e.config, + [ + { checkName: 'layTransferLeftCheck', views: [] }, + { checkName: 'layTransferRightCheck', views: [] }, + ]) + e.parseData(function (e) { + var t = e.selected ? 1 : 0, + i = [ + '
    • ', + '', + '
    • ', + ].join('') + a[t].views.push(i), delete e.selected + }), + e.layData.eq(0).html(a[0].views.join('')), + e.layData.eq(1).html(a[1].views.join('')), + e.renderCheckBtn() + }), + (x.prototype.renderForm = function (e) { + i.render(e, 'LAY-transfer-' + this.index) + }), + (x.prototype.renderCheckBtn = function (e) { + var t = this, + i = t.config + ;(e = e || {}), + t.layBox.each(function (n) { + var l = a(this), + r = l.find('.' + y), + d = l.find('.' + u).find('input[type="checkbox"]'), + s = r.find('input[type="checkbox"]'), + h = 0, + f = !1 + if ( + (s.each(function () { + var e = a(this).data('hide') + ;(this.checked || this.disabled || e) && h++, + this.checked && !e && (f = !0) + }), + d.prop('checked', f && h === s.length), + t.layBtn.eq(n)[f ? 'removeClass' : 'addClass'](o), + !e.stopNone) + ) { + var p = r.children('li:not(.' + c + ')').length + t.noneView(r, p ? '' : i.text.none) + } + }), + t.renderForm('checkbox') + }), + (x.prototype.noneView = function (e, t) { + var i = a('

      ' + (t || '') + '

      ') + e.find('.' + d)[0] && e.find('.' + d).remove(), + t.replace(/\s/g, '') && e.append(i) + }), + (x.prototype.setValue = function () { + var e = this, + t = e.config, + i = [] + return ( + e.layBox + .eq(1) + .find('.' + y + ' input[type="checkbox"]') + .each(function () { + var e = a(this).data('hide') + e || i.push(this.value) + }), + (t.value = i), + e + ) + }), + (x.prototype.parseData = function (e) { + var t = this, + i = t.config, + n = [] + return ( + layui.each(i.data, function (t, l) { + ;(l = + ('function' == typeof i.parseData + ? i.parseData(l) + : l) || l), + n.push((l = a.extend({}, l))), + layui.each(i.value, function (e, a) { + a == l.value && (l.selected = !0) + }), + e && e(l) + }), + (i.data = n), + t + ) + }), + (x.prototype.getData = function (e) { + var a = this, + t = a.config, + i = [] + return ( + a.setValue(), + layui.each(e || t.value, function (e, a) { + layui.each(t.data, function (e, t) { + delete t.selected, a == t.value && i.push(t) + }) + }), + i + ) + }), + (x.prototype.events = function () { + var e = this, + t = e.config + e.elem.on( + 'click', + 'input[lay-filter="layTransferCheckbox"]+', + function () { + var t = a(this).prev(), + i = t[0].checked, + n = t + .parents('.' + s) + .eq(0) + .find('.' + y) + t[0].disabled || + ('all' === t.attr('lay-type') && + n.find('input[type="checkbox"]').each(function () { + this.disabled || (this.checked = i) + }), + e.renderCheckBtn({ stopNone: !0 })) + } + ), + e.layBtn.on('click', function () { + var i = a(this), + n = i.data('index'), + l = e.layBox.eq(n), + r = [] + if (!i.hasClass(o)) { + e.layBox.eq(n).each(function (t) { + var i = a(this), + n = i.find('.' + y) + n.children('li').each(function () { + var t = a(this), + i = t.find('input[type="checkbox"]'), + n = i.data('hide') + i[0].checked && + !n && + ((i[0].checked = !1), + l + .siblings('.' + s) + .find('.' + y) + .append(t.clone()), + t.remove(), + r.push(i[0].value)), + e.setValue() + }) + }), + e.renderCheckBtn() + var c = l.siblings('.' + s).find('.' + h + ' input') + '' === c.val() || c.trigger('keyup'), + t.onchange && t.onchange(e.getData(r), n) + } + }), + e.laySearch.find('input').on('keyup', function () { + var i = this.value, + n = a(this) + .parents('.' + h) + .eq(0) + .siblings('.' + y), + l = n.children('li') + l.each(function () { + var e = a(this), + t = e.find('input[type="checkbox"]'), + n = t[0].title.indexOf(i) !== -1 + e[n ? 'removeClass' : 'addClass'](c), t.data('hide', !n) + }), + e.renderCheckBtn() + var r = l.length === n.children('li.' + c).length + e.noneView(n, r ? t.text.searchNone : '') + }) + }), + (r.that = {}), + (r.config = {}), + (l.reload = function (e, a) { + var t = r.that[e] + return t.reload(a), r.call(t) + }), + (l.getData = function (e) { + var a = r.that[e] + return a.getData() + }), + (l.render = function (e) { + var a = new x(e) + return r.call(a) + }), + e(n, l) +}) +layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function (e) { + 'use strict' + var t = layui.$, + i = layui.laytpl, + a = layui.laypage, + l = layui.layer, + n = layui.form, + o = (layui.util, layui.hint()), + r = layui.device(), + d = { + config: { checkName: 'LAY_CHECKED', indexName: 'LAY_TABLE_INDEX' }, + cache: {}, + index: layui.table ? layui.table.index + 1e4 : 0, + set: function (e) { + var i = this + return (i.config = t.extend({}, i.config, e)), i + }, + on: function (e, t) { + return layui.onevent.call(this, y, e, t) + }, + }, + c = function () { + var e = this, + t = e.config, + i = t.id || t.index + return ( + i && ((c.that[i] = e), (c.config[i] = t)), + { + config: t, + reload: function (t, i) { + e.reload.call(e, t, i) + }, + setColsWidth: function () { + e.setColsWidth.call(e) + }, + resize: function () { + e.resize.call(e) + }, + } + ) + }, + s = function (e) { + var t = c.config[e] + return ( + t || + o.error( + e + ? "The table instance with ID '" + e + "' not found" + : 'ID argument required' + ), + t || null + ) + }, + u = function (e, a, l, n) { + var o = e.templet + ? (function () { + return 'function' == typeof e.templet + ? e.templet(l) + : i(t(e.templet).html() || String(a)).render(l) + })() + : a + return n ? t('
      ' + o + '
      ').text() : o + }, + y = 'table', + h = '.layui-table', + f = 'layui-hide', + p = 'layui-none', + v = 'layui-table-view', + m = '.layui-table-tool', + g = '.layui-table-box', + b = '.layui-table-init', + x = '.layui-table-header', + k = '.layui-table-body', + C = '.layui-table-main', + w = '.layui-table-fixed', + T = '.layui-table-fixed-l', + N = '.layui-table-fixed-r', + A = '.layui-table-total', + L = '.layui-table-page', + S = '.layui-table-sort', + R = 'layui-table-edit', + W = 'layui-table-hover', + _ = function (e) { + var t = + '{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}' + return ( + (e = e || {}), + [ + '
      ', + '', + '{{# layui.each(d.data.cols, function(i1, item1){ }}', + '', + '{{# layui.each(item1, function(i2, item2){ }}', + '{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}', + '{{# if(item2.fixed === "right"){ right = true; } }}', + (function () { + return e.fixed && 'right' !== e.fixed + ? '{{# if(item2.fixed && item2.fixed !== "right"){ }}' + : 'right' === e.fixed + ? '{{# if(item2.fixed === "right"){ }}' + : '' + })(), + '{{# var isSort = !(item2.colGroup) && item2.sort; }}', + '', + e.fixed ? '{{# }; }}' : '', + '{{# }); }}', + '', + '{{# }); }}', + '', + '
      ', + '
      ', + '{{# if(item2.type === "checkbox"){ }}', + '', + '{{# } else { }}', + '{{item2.title||""}}', + '{{# if(isSort){ }}', + '', + '{{# } }}', + '{{# } }}', + '
      ', + '
      ', + ].join('') + ) + }, + z = [ + '', + '', + '
      ', + ].join(''), + E = [ + '
      ', + '{{# if(d.data.toolbar){ }}', + '
      ', + '
      ', + '
      ', + '
      ', + '{{# } }}', + '
      ', + '{{# if(d.data.loading){ }}', + '
      ', + '', + '
      ', + '{{# } }}', + '{{# var left, right; }}', + '
      ', + _(), + '
      ', + '
      ', + z, + '
      ', + '{{# if(left){ }}', + '
      ', + '
      ', + _({ fixed: !0 }), + '
      ', + '
      ', + z, + '
      ', + '
      ', + '{{# }; }}', + '{{# if(right){ }}', + '
      ', + '
      ', + _({ fixed: 'right' }), + '
      ', + '
      ', + '
      ', + z, + '
      ', + '
      ', + '{{# }; }}', + '
      ', + '{{# if(d.data.totalRow){ }}', + '
      ', + '', + '', + '
      ', + '
      ', + '{{# } }}', + '{{# if(d.data.page){ }}', + '
      ', + '
      ', + '
      ', + '{{# } }}', + '', + '
      ', + ].join(''), + j = t(window), + F = t(document), + I = function (e) { + var i = this + ;(i.index = ++d.index), + (i.config = t.extend({}, i.config, d.config, e)), + i.render() + } + ;(I.prototype.config = { + limit: 10, + loading: !0, + cellMinWidth: 60, + defaultToolbar: ['filter', 'exports', 'print'], + autoSort: !0, + text: { none: '无数据' }, + }), + (I.prototype.render = function () { + var e = this, + a = e.config + if ( + ((a.elem = t(a.elem)), + (a.where = a.where || {}), + (a.id = a.id || a.elem.attr('id') || e.index), + (a.request = t.extend( + { pageName: 'page', limitName: 'limit' }, + a.request + )), + (a.response = t.extend( + { + statusName: 'code', + statusCode: 0, + msgName: 'msg', + dataName: 'data', + totalRowName: 'totalRow', + countName: 'count', + }, + a.response + )), + 'object' == typeof a.page && + ((a.limit = a.page.limit || a.limit), + (a.limits = a.page.limits || a.limits), + (e.page = a.page.curr = a.page.curr || 1), + delete a.page.elem, + delete a.page.jump), + !a.elem[0]) + ) + return e + a.height && + /^full-\d+$/.test(a.height) && + ((e.fullHeightGap = a.height.split('-')[1]), + (a.height = j.height() - e.fullHeightGap)), + e.setInit() + var l = a.elem, + n = l.next('.' + v), + o = (e.elem = t( + i(E).render({ VIEW_CLASS: v, data: a, index: e.index }) + )) + if ( + ((a.index = e.index), + (e.key = a.id || a.index), + n[0] && n.remove(), + l.after(o), + (e.layTool = o.find(m)), + (e.layBox = o.find(g)), + (e.layHeader = o.find(x)), + (e.layMain = o.find(C)), + (e.layBody = o.find(k)), + (e.layFixed = o.find(w)), + (e.layFixLeft = o.find(T)), + (e.layFixRight = o.find(N)), + (e.layTotal = o.find(A)), + (e.layPage = o.find(L)), + e.renderToolbar(), + e.fullSize(), + a.cols.length > 1) + ) { + var r = e.layFixed.find(x).find('th') + r.height( + e.layHeader.height() - + 1 - + parseFloat(r.css('padding-top')) - + parseFloat(r.css('padding-bottom')) + ) + } + e.pullData(e.page), e.events() + }), + (I.prototype.initOpts = function (e) { + var t = this, + i = + (t.config, + { checkbox: 48, radio: 48, space: 15, numbers: 40 }) + e.checkbox && (e.type = 'checkbox'), + e.space && (e.type = 'space'), + e.type || (e.type = 'normal'), + 'normal' !== e.type && + ((e.unresize = !0), (e.width = e.width || i[e.type])) + }), + (I.prototype.setInit = function (e) { + var t = this, + i = t.config + return ( + (i.clientWidth = + i.width || + (function () { + var e = function (t) { + var a, l + ;(t = t || i.elem.parent()), (a = t.width()) + try { + l = 'none' === t.css('display') + } catch (n) {} + return !t[0] || (a && !l) ? a : e(t.parent()) + } + return e() + })()), + 'width' === e + ? i.clientWidth + : void layui.each(i.cols, function (e, a) { + layui.each(a, function (l, n) { + if (!n) return void a.splice(l, 1) + if ( + ((n.key = e + '-' + l), + (n.hide = n.hide || !1), + n.colGroup || n.colspan > 1) + ) { + var o = 0 + layui.each(i.cols[e + 1], function (t, i) { + i.HAS_PARENT || + (o > 1 && o == n.colspan) || + ((i.HAS_PARENT = !0), + (i.parentKey = e + '-' + l), + (o += parseInt( + i.colspan > 1 ? i.colspan : 1 + ))) + }), + (n.colGroup = !0) + } + t.initOpts(n) + }) + }) + ) + }), + (I.prototype.renderToolbar = function () { + var e = this, + a = e.config, + l = [ + '
      ', + '
      ', + '
      ', + ].join(''), + n = e.layTool.find('.layui-table-tool-temp') + if ('default' === a.toolbar) n.html(l) + else if ('string' == typeof a.toolbar) { + var o = t(a.toolbar).html() || '' + o && n.html(i(o).render(a)) + } + var r = { + filter: { + title: '筛选列', + layEvent: 'LAYTABLE_COLS', + icon: 'layui-icon-cols', + }, + exports: { + title: '导出', + layEvent: 'LAYTABLE_EXPORT', + icon: 'layui-icon-export', + }, + print: { + title: '打印', + layEvent: 'LAYTABLE_PRINT', + icon: 'layui-icon-print', + }, + }, + d = [] + 'object' == typeof a.defaultToolbar && + layui.each(a.defaultToolbar, function (e, t) { + var i = 'string' == typeof t ? r[t] : t + i && + d.push( + '
      ' + ) + }), + e.layTool.find('.layui-table-tool-self').html(d.join('')) + }), + (I.prototype.setParentCol = function (e, t) { + var i = this, + a = i.config, + l = i.layHeader.find( + 'th[data-key="' + a.index + '-' + t + '"]' + ), + n = parseInt(l.attr('colspan')) || 0 + if (l[0]) { + var o = t.split('-'), + r = a.cols[o[0]][o[1]] + e ? n-- : n++, + l.attr('colspan', n), + l[n < 1 ? 'addClass' : 'removeClass'](f), + (r.colspan = n), + (r.hide = n < 1) + var d = l.data('parentkey') + d && i.setParentCol(e, d) + } + }), + (I.prototype.setColsPatch = function () { + var e = this, + t = e.config + layui.each(t.cols, function (t, i) { + layui.each(i, function (t, i) { + i.hide && e.setParentCol(i.hide, i.parentKey) + }) + }) + }), + (I.prototype.setColsWidth = function () { + var e = this, + t = e.config, + i = 0, + a = 0, + l = 0, + n = 0, + o = e.setInit('width') + e.eachCols(function (e, t) { + t.hide || i++ + }), + (o = + o - + (function () { + return 'line' === t.skin || 'nob' === t.skin ? 2 : i + 1 + })() - + e.getScrollWidth(e.layMain[0]) - + 1) + var r = function (e) { + layui.each(t.cols, function (i, r) { + layui.each(r, function (i, d) { + var c = 0, + s = d.minWidth || t.cellMinWidth + return d + ? void ( + d.colGroup || + d.hide || + (e + ? l && l < s && (a--, (c = s)) + : ((c = d.width || 0), + /\d+%$/.test(c) + ? ((c = Math.floor( + (parseFloat(c) / 100) * + o + )), + c < s && (c = s)) + : c || + ((d.width = c = 0), a++)), + d.hide && (c = 0), + (n += c)) + ) + : void r.splice(i, 1) + }) + }), + o > n && a && (l = (o - n) / a) + } + r(), + r(!0), + (e.autoColNums = a), + e.eachCols(function (i, a) { + var n = a.minWidth || t.cellMinWidth + a.colGroup || + a.hide || + (0 === a.width + ? e.getCssRule(t.index + '-' + a.key, function (e) { + e.style.width = + Math.floor(l >= n ? l : n) + 'px' + }) + : /\d+%$/.test(a.width) && + e.getCssRule(t.index + '-' + a.key, function (e) { + e.style.width = + Math.floor( + (parseFloat(a.width) / 100) * o + ) + 'px' + })) + }) + var d = + e.layMain.width() - + e.getScrollWidth(e.layMain[0]) - + e.layMain.children('table').outerWidth() + if (e.autoColNums && d >= -i && d <= i) { + var c = function (t) { + var i + return ( + (t = + t || + e.layHeader.eq(0).find('thead th:last-child')), + (i = t.data('field')), + !i && t.prev()[0] ? c(t.prev()) : t + ) + }, + s = c(), + u = s.data('key') + e.getCssRule(u, function (t) { + var i = t.style.width || s.outerWidth() + ;(t.style.width = parseFloat(i) + d + 'px'), + e.layMain.height() - e.layMain.prop('clientHeight') > + 0 && + (t.style.width = + parseFloat(t.style.width) - 1 + 'px') + }) + } + e.loading(!0) + }), + (I.prototype.resize = function () { + var e = this + e.fullSize(), e.setColsWidth(), e.scrollPatch() + }), + (I.prototype.reload = function (e, i) { + var a = this + ;(e = e || {}), + delete a.haveInit, + e.data && e.data.constructor === Array && delete a.config.data, + (a.config = t.extend(i, {}, a.config, e)), + a.render() + }), + (I.prototype.errorView = function (e) { + var i = this, + a = i.layMain.find('.' + p), + l = t('
      ' + (e || 'Error') + '
      ') + a[0] && (i.layNone.remove(), a.remove()), + i.layFixed.addClass(f), + i.layMain.find('tbody').html(''), + i.layMain.append((i.layNone = l)), + (d.cache[i.key] = []) + }), + (I.prototype.page = 1), + (I.prototype.pullData = function (e) { + var i = this, + a = i.config, + l = a.request, + n = a.response, + o = function () { + 'object' == typeof a.initSort && + i.sort(a.initSort.field, a.initSort.type) + } + if (((i.startTime = new Date().getTime()), a.url)) { + var r = {} + ;(r[l.pageName] = e), (r[l.limitName] = a.limit) + var d = t.extend(r, a.where) + a.contentType && + 0 == a.contentType.indexOf('application/json') && + (d = JSON.stringify(d)), + i.loading(), + t.ajax({ + type: a.method || 'get', + url: a.url, + contentType: a.contentType, + data: d, + dataType: 'json', + headers: a.headers || {}, + success: function (t) { + 'function' == typeof a.parseData && + (t = a.parseData(t) || t), + t[n.statusName] != n.statusCode + ? (i.renderForm(), + i.errorView( + t[n.msgName] || + '返回的数据不符合规范,正确的成功状态码应为:"' + + n.statusName + + '": ' + + n.statusCode + )) + : (i.renderData(t, e, t[n.countName]), + o(), + (a.time = + new Date().getTime() - + i.startTime + + ' ms')), + i.setColsWidth(), + 'function' == typeof a.done && + a.done(t, e, t[n.countName]) + }, + error: function (e, t) { + i.errorView('数据接口请求异常:' + t), + i.renderForm(), + i.setColsWidth(), + 'function' == typeof a.error && a.error(e, t) + }, + }) + } else if (a.data && a.data.constructor === Array) { + var c = {}, + s = e * a.limit - a.limit + ;(c[n.dataName] = a.data.concat().splice(s, a.limit)), + (c[n.countName] = a.data.length), + 'object' == typeof a.totalRow && + (c[n.totalRowName] = t.extend({}, a.totalRow)), + i.renderData(c, e, c[n.countName]), + o(), + i.setColsWidth(), + 'function' == typeof a.done && a.done(c, e, c[n.countName]) + } + }), + (I.prototype.eachCols = function (e) { + var t = this + return d.eachCols(null, e, t.config.cols), t + }), + (I.prototype.renderData = function (e, n, o, r) { + var c = this, + s = c.config, + y = e[s.response.dataName] || [], + h = e[s.response.totalRowName], + v = [], + m = [], + g = [], + b = function () { + var e + return !r && c.sortKey + ? c.sort(c.sortKey.field, c.sortKey.sort, !0) + : (layui.each(y, function (a, l) { + var o = [], + y = [], + h = [], + p = a + s.limit * (n - 1) + 1 + 0 !== l.length && + (r || (l[d.config.indexName] = a), + c.eachCols(function (n, r) { + var c = r.field || n, + v = s.index + '-' + r.key, + m = l[c] + if ( + ((void 0 !== m && null !== m) || + (m = ''), + !r.colGroup) + ) { + var g = [ + '', + '
      ' + + (function () { + var n = t.extend( + !0, + { + LAY_INDEX: + p, + }, + l + ), + o = + d.config + .checkName + switch (r.type) { + case 'checkbox': + return ( + '' + ) + case 'radio': + return ( + n[o] && + (e = a), + '' + ) + case 'numbers': + return p + } + return r.toolbar + ? i( + t( + r.toolbar + ).html() || + '' + ).render(n) + : u(r, m, n) + })(), + '
      ', + ].join('') + o.push(g), + r.fixed && + 'right' !== r.fixed && + y.push(g), + 'right' === r.fixed && h.push(g) + } + }), + v.push( + '' + + o.join('') + + '' + ), + m.push( + '' + + y.join('') + + '' + ), + g.push( + '' + + h.join('') + + '' + )) + }), + c.layBody.scrollTop(0), + c.layMain.find('.' + p).remove(), + c.layMain.find('tbody').html(v.join('')), + c.layFixLeft.find('tbody').html(m.join('')), + c.layFixRight.find('tbody').html(g.join('')), + c.renderForm(), + 'number' == typeof e && c.setThisRowChecked(e), + c.syncCheckAll(), + c.haveInit + ? c.scrollPatch() + : setTimeout(function () { + c.scrollPatch() + }, 50), + (c.haveInit = !0), + l.close(c.tipsIndex), + s.HAS_SET_COLS_PATCH || c.setColsPatch(), + void (s.HAS_SET_COLS_PATCH = !0)) + } + return ( + (d.cache[c.key] = y), + c.layPage[ + 0 == o || (0 === y.length && 1 == n) + ? 'addClass' + : 'removeClass' + ](f), + 0 === y.length + ? (c.renderForm(), c.errorView(s.text.none)) + : (c.layFixed.removeClass(f), + r + ? b() + : (b(), + c.renderTotal(y, h), + void ( + s.page && + ((s.page = t.extend( + { + elem: 'layui-table-page' + s.index, + count: o, + limit: s.limit, + limits: s.limits || [ + 10, 20, 30, 40, 50, 60, 70, 80, + 90, + ], + groups: 3, + layout: [ + 'prev', + 'page', + 'next', + 'skip', + 'count', + 'limit', + ], + prev: '', + next: '', + jump: function (e, t) { + t || + ((c.page = e.curr), + (s.limit = e.limit), + c.pullData(e.curr)) + }, + }, + s.page + )), + (s.page.count = o), + a.render(s.page)) + ))) + ) + }), + (I.prototype.renderTotal = function (e, a) { + var l = this, + n = l.config, + o = {} + if (n.totalRow) { + layui.each(e, function (e, t) { + 0 !== t.length && + l.eachCols(function (e, i) { + var a = i.field || e, + l = t[a] + i.totalRow && + (o[a] = (o[a] || 0) + (parseFloat(l) || 0)) + }) + }), + (l.dataTotal = {}) + var r = [] + l.eachCols(function (e, d) { + var c = d.field || e, + s = (function () { + var e = d.totalRowText || '', + t = parseFloat(o[c]).toFixed(2), + i = {} + return ( + (i[c] = t), + (t = u(d, t, i)), + a ? a[d.field] || e : d.totalRow ? t || e : e + ) + })(), + y = [ + '', + '
      ' + + (function () { + var e = d.totalRow || n.totalRow + return 'string' == typeof e + ? i(e).render( + t.extend({ TOTAL_NUMS: s }, d) + ) + : s + })(), + '
      ', + ].join('') + d.field && (l.dataTotal[c] = s), r.push(y) + }), + l.layTotal.find('tbody').html('' + r.join('') + '') + } + }), + (I.prototype.getColElem = function (e, t) { + var i = this, + a = i.config + return e + .eq(0) + .find('.laytable-cell-' + (a.index + '-' + t) + ':eq(0)') + }), + (I.prototype.renderForm = function (e) { + n.render(e, 'LAY-table-' + this.index) + }), + (I.prototype.setThisRowChecked = function (e) { + var t = this, + i = (t.config, 'layui-table-click'), + a = t.layBody.find('tr[data-index="' + e + '"]') + a.addClass(i).siblings('tr').removeClass(i) + }), + (I.prototype.sort = function (e, i, a, l) { + var n, + r, + c = this, + s = {}, + u = c.config, + h = u.elem.attr('lay-filter'), + f = d.cache[c.key] + 'string' == typeof e && + ((n = e), + c.layHeader.find('th').each(function (i, a) { + var l = t(this), + o = l.data('field') + if (o === e) return (e = l), (n = o), !1 + })) + try { + var n = n || e.data('field'), + p = e.data('key') + if ( + c.sortKey && + !a && + n === c.sortKey.field && + i === c.sortKey.sort + ) + return + var v = c.layHeader.find('th .laytable-cell-' + p).find(S) + c.layHeader.find('th').find(S).removeAttr('lay-sort'), + v.attr('lay-sort', i || null), + c.layFixed.find('th') + } catch (m) { + o.error("Table modules: sort field '" + n + "' not matched") + } + ;(c.sortKey = { field: n, sort: i }), + u.autoSort && + ('asc' === i + ? (r = layui.sort(f, n)) + : 'desc' === i + ? (r = layui.sort(f, n, !0)) + : ((r = layui.sort(f, d.config.indexName)), + delete c.sortKey)), + (s[u.response.dataName] = r || f), + c.renderData(s, c.page, c.count, !0), + l && + layui.event.call(e, y, 'sort(' + h + ')', { + field: n, + type: i, + }) + }), + (I.prototype.loading = function (e) { + var i = this, + a = i.config + a.loading && + (e + ? (i.layInit && i.layInit.remove(), + delete i.layInit, + i.layBox.find(b).remove()) + : ((i.layInit = t( + [ + '
      ', + '', + '
      ', + ].join('') + )), + i.layBox.append(i.layInit))) + }), + (I.prototype.setCheckData = function (e, t) { + var i = this, + a = i.config, + l = d.cache[i.key] + l[e] && l[e].constructor !== Array && (l[e][a.checkName] = t) + }), + (I.prototype.syncCheckAll = function () { + var e = this, + t = e.config, + i = e.layHeader.find('input[name="layTableCheckbox"]'), + a = function (i) { + return ( + e.eachCols(function (e, a) { + 'checkbox' === a.type && (a[t.checkName] = i) + }), + i + ) + } + i[0] && + (d.checkStatus(e.key).isAll + ? (i[0].checked || + (i.prop('checked', !0), e.renderForm('checkbox')), + a(!0)) + : (i[0].checked && + (i.prop('checked', !1), e.renderForm('checkbox')), + a(!1))) + }), + (I.prototype.getCssRule = function (e, t) { + var i = this, + a = i.elem.find('style')[0], + l = a.sheet || a.styleSheet || {}, + n = l.cssRules || l.rules + layui.each(n, function (i, a) { + if (a.selectorText === '.laytable-cell-' + e) return t(a), !0 + }) + }), + (I.prototype.fullSize = function () { + var e, + t = this, + i = t.config, + a = i.height + t.fullHeightGap && + ((a = j.height() - t.fullHeightGap), + a < 135 && (a = 135), + t.elem.css('height', a)), + a && + ((e = parseFloat(a) - (t.layHeader.outerHeight() || 38)), + i.toolbar && (e -= t.layTool.outerHeight() || 50), + i.totalRow && (e -= t.layTotal.outerHeight() || 40), + i.page && (e -= t.layPage.outerHeight() || 41), + t.layMain.css('height', e - 2)) + }), + (I.prototype.getScrollWidth = function (e) { + var t = 0 + return ( + e + ? (t = e.offsetWidth - e.clientWidth) + : ((e = document.createElement('div')), + (e.style.width = '100px'), + (e.style.height = '100px'), + (e.style.overflowY = 'scroll'), + document.body.appendChild(e), + (t = e.offsetWidth - e.clientWidth), + document.body.removeChild(e)), + t + ) + }), + (I.prototype.scrollPatch = function () { + var e = this, + i = e.layMain.children('table'), + a = e.layMain.width() - e.layMain.prop('clientWidth'), + l = e.layMain.height() - e.layMain.prop('clientHeight'), + n = + (e.getScrollWidth(e.layMain[0]), + i.outerWidth() - e.layMain.width()), + o = function (e) { + if (a && l) { + if (((e = e.eq(0)), !e.find('.layui-table-patch')[0])) { + var i = t( + '
      ' + ) + i.find('div').css({ width: a }), + e.find('tr').append(i) + } + } else e.find('.layui-table-patch').remove() + } + o(e.layHeader), o(e.layTotal) + var r = e.layMain.height(), + d = r - l + e.layFixed.find(k).css('height', i.height() >= d ? d : 'auto'), + e.layFixRight[n > 0 ? 'removeClass' : 'addClass'](f), + e.layFixRight.css('right', a - 1) + }), + (I.prototype.events = function () { + var e, + i = this, + a = i.config, + o = t('body'), + c = {}, + s = i.layHeader.find('th'), + h = '.layui-table-cell', + p = a.elem.attr('lay-filter') + i.layTool.on('click', '*[lay-event]', function (e) { + var o = t(this), + c = o.attr('lay-event'), + s = function (e) { + var l = t(e.list), + n = t('') + n.html(l), + a.height && + n.css( + 'max-height', + a.height - (i.layTool.outerHeight() || 50) + ), + o.find('.layui-table-tool-panel')[0] || o.append(n), + i.renderForm(), + n.on('click', function (e) { + layui.stope(e) + }), + e.done && e.done(n, l) + } + switch ( + (layui.stope(e), + F.trigger('table.tool.panel.remove'), + l.close(i.tipsIndex), + c) + ) { + case 'LAYTABLE_COLS': + s({ + list: (function () { + var e = [] + return ( + i.eachCols(function (t, i) { + i.field && + 'normal' == i.type && + e.push( + '
    • ' + ) + }), + e.join('') + ) + })(), + done: function () { + n.on( + 'checkbox(LAY_TABLE_TOOL_COLS)', + function (e) { + var l = t(e.elem), + n = this.checked, + o = l.data('key'), + r = l.data('parentkey') + layui.each(a.cols, function (e, t) { + layui.each(t, function (t, l) { + if (e + '-' + t === o) { + var d = l.hide + ;(l.hide = !n), + i.elem + .find( + '*[data-key="' + + a.index + + '-' + + o + + '"]' + ) + [ + n + ? 'removeClass' + : 'addClass' + ](f), + d != l.hide && + i.setParentCol( + !n, + r + ), + i.resize() + } + }) + }) + } + ) + }, + }) + break + case 'LAYTABLE_EXPORT': + r.ie + ? l.tips( + '导出功能不支持 IE,请用 Chrome 等高级浏览器导出', + this, + { tips: 3 } + ) + : s({ + list: (function () { + return [ + '
    • 导出到 Csv 文件
    • ', + '
    • 导出到 Excel 文件
    • ', + ].join('') + })(), + done: function (e, l) { + l.on('click', function () { + var e = t(this).data('type') + d.exportFile.call(i, a.id, null, e) + }) + }, + }) + break + case 'LAYTABLE_PRINT': + var u = window.open('打印窗口', '_blank'), + h = [ + '', + ].join(''), + v = t(i.layHeader.html()) + v.append(i.layMain.find('table').html()), + v.append(i.layTotal.find('table').html()), + v.find('th.layui-table-patch').remove(), + v.find('.layui-table-col-special').remove(), + u.document.write(h + v.prop('outerHTML')), + u.document.close(), + u.print(), + u.close() + } + layui.event.call( + this, + y, + 'toolbar(' + p + ')', + t.extend({ event: c, config: a }, {}) + ) + }), + s + .on('mousemove', function (e) { + var i = t(this), + a = i.offset().left, + l = e.clientX - a + i.data('unresize') || + c.resizeStart || + ((c.allowResize = i.width() - l <= 10), + o.css('cursor', c.allowResize ? 'col-resize' : '')) + }) + .on('mouseleave', function () { + t(this) + c.resizeStart || o.css('cursor', '') + }) + .on('mousedown', function (e) { + var l = t(this) + if (c.allowResize) { + var n = l.data('key') + e.preventDefault(), + (c.resizeStart = !0), + (c.offset = [e.clientX, e.clientY]), + i.getCssRule(n, function (e) { + var t = e.style.width || l.outerWidth() + ;(c.rule = e), + (c.ruleWidth = parseFloat(t)), + (c.minWidth = + l.data('minwidth') || + a.cellMinWidth) + }) + } + }), + F.on('mousemove', function (t) { + if (c.resizeStart) { + if ((t.preventDefault(), c.rule)) { + var a = c.ruleWidth + t.clientX - c.offset[0] + a < c.minWidth && (a = c.minWidth), + (c.rule.style.width = a + 'px'), + l.close(i.tipsIndex) + } + e = 1 + } + }).on('mouseup', function (t) { + c.resizeStart && + ((c = {}), o.css('cursor', ''), i.scrollPatch()), + 2 === e && (e = null) + }), + s + .on('click', function (a) { + var l, + n = t(this), + o = n.find(S), + r = o.attr('lay-sort') + return o[0] && 1 !== e + ? ((l = + 'asc' === r + ? 'desc' + : 'desc' === r + ? null + : 'asc'), + void i.sort(n, l, null, !0)) + : (e = 2) + }) + .find(S + ' .layui-edge ') + .on('click', function (e) { + var a = t(this), + l = a.index(), + n = a.parents('th').eq(0).data('field') + layui.stope(e), + 0 === l + ? i.sort(n, 'asc', null, !0) + : i.sort(n, 'desc', null, !0) + }) + var v = function (e) { + var a = t(this), + l = a.parents('tr').eq(0).data('index'), + n = i.layBody.find('tr[data-index="' + l + '"]'), + o = d.cache[i.key] || [] + return ( + (o = o[l] || {}), + t.extend( + { + tr: n, + data: d.clearCacheKey(o), + del: function () { + ;(d.cache[i.key][l] = []), + n.remove(), + i.scrollPatch() + }, + update: function (e) { + ;(e = e || {}), + layui.each(e, function (e, t) { + if (e in o) { + var a, + l = n.children( + 'td[data-field="' + e + '"]' + ) + ;(o[e] = t), + i.eachCols(function (t, i) { + i.field == e && + i.templet && + (a = i.templet) + }), + l + .children(h) + .html( + u({ templet: a }, t, o) + ), + l.data('content', t) + } + }) + }, + }, + e + ) + ) + } + i.elem.on('click', 'input[name="layTableCheckbox"]+', function () { + var e = t(this).prev(), + a = i.layBody.find('input[name="layTableCheckbox"]'), + l = e.parents('tr').eq(0).data('index'), + n = e[0].checked, + o = 'layTableAllChoose' === e.attr('lay-filter') + o + ? (a.each(function (e, t) { + ;(t.checked = n), i.setCheckData(e, n) + }), + i.syncCheckAll(), + i.renderForm('checkbox')) + : (i.setCheckData(l, n), i.syncCheckAll()), + layui.event.call( + e[0], + y, + 'checkbox(' + p + ')', + v.call(e[0], { checked: n, type: o ? 'all' : 'one' }) + ) + }), + i.elem.on( + 'click', + 'input[lay-type="layTableRadio"]+', + function () { + var e = t(this).prev(), + l = e[0].checked, + n = d.cache[i.key], + o = e.parents('tr').eq(0).data('index') + layui.each(n, function (e, t) { + o === e + ? (t[a.checkName] = !0) + : delete t[a.checkName] + }), + i.setThisRowChecked(o), + layui.event.call( + this, + y, + 'radio(' + p + ')', + v.call(this, { checked: l }) + ) + } + ), + i.layBody + .on('mouseenter', 'tr', function () { + var e = t(this), + a = e.index() + e.data('off') || + i.layBody.find('tr:eq(' + a + ')').addClass(W) + }) + .on('mouseleave', 'tr', function () { + var e = t(this), + a = e.index() + e.data('off') || + i.layBody.find('tr:eq(' + a + ')').removeClass(W) + }) + .on('click', 'tr', function () { + m.call(this, 'row') + }) + .on('dblclick', 'tr', function () { + m.call(this, 'rowDouble') + }) + var m = function (e) { + var i = t(this) + i.data('off') || + layui.event.call( + this, + y, + e + '(' + p + ')', + v.call(i.children('td')[0]) + ) + } + i.layBody + .on('change', '.' + R, function () { + var e = t(this), + a = this.value, + l = e.parent().data('field'), + n = e.parents('tr').eq(0).data('index'), + o = d.cache[i.key][n] + ;(o[l] = a), + layui.event.call( + this, + y, + 'edit(' + p + ')', + v.call(this, { value: a, field: l }) + ) + }) + .on('blur', '.' + R, function () { + var e, + a = t(this), + l = this, + n = a.parent().data('field'), + o = a.parents('tr').eq(0).data('index'), + r = d.cache[i.key][o] + i.eachCols(function (t, i) { + i.field == n && i.templet && (e = i.templet) + }), + a.siblings(h).html( + (function (t) { + return u({ templet: e }, t, r) + })(l.value) + ), + a.parent().data('content', l.value), + a.remove() + }), + i.layBody + .on('click', 'td', function (e) { + var i = t(this), + a = (i.data('field'), i.data('edit')), + l = i.children(h) + if (!i.data('off') && a) { + var n = t('') + return ( + (n[0].value = i.data('content') || l.text()), + i.find('.' + R)[0] || i.append(n), + n.focus(), + void layui.stope(e) + ) + } + }) + .on('mouseenter', 'td', function () { + b.call(this) + }) + .on('mouseleave', 'td', function () { + b.call(this, 'hide') + }) + var g = 'layui-table-grid-down', + b = function (e) { + var i = t(this), + a = i.children(h) + if (!i.data('off')) + if (e) i.find('.layui-table-grid-down').remove() + else if (a.prop('scrollWidth') > a.outerWidth()) { + if (a.find('.' + g)[0]) return + i.append( + '
      ' + ) + } + } + i.layBody.on('click', '.' + g, function (e) { + var n = t(this), + o = n.parent(), + d = o.children(h) + ;(i.tipsIndex = l.tips( + [ + '
      ', + d.html(), + '
      ', + '', + ].join(''), + d[0], + { + tips: [3, ''], + time: -1, + anim: -1, + maxWidth: r.ios || r.android ? 300 : i.elem.width() / 2, + isOutAnim: !1, + skin: 'layui-table-tips', + success: function (e, t) { + e.find('.layui-table-tips-c').on( + 'click', + function () { + l.close(t) + } + ) + }, + } + )), + layui.stope(e) + }), + i.layBody.on('click', '*[lay-event]', function () { + var e = t(this), + a = e.parents('tr').eq(0).data('index') + layui.event.call( + this, + y, + 'tool(' + p + ')', + v.call(this, { event: e.attr('lay-event') }) + ), + i.setThisRowChecked(a) + }), + i.layMain.on('scroll', function () { + var e = t(this), + a = e.scrollLeft(), + n = e.scrollTop() + i.layHeader.scrollLeft(a), + i.layTotal.scrollLeft(a), + i.layFixed.find(k).scrollTop(n), + l.close(i.tipsIndex) + }), + j.on('resize', function () { + i.resize() + }) + }), + (function () { + F.on('click', function () { + F.trigger('table.remove.tool.panel') + }), + F.on('table.remove.tool.panel', function () { + t('.layui-table-tool-panel').remove() + }) + })(), + (d.init = function (e, i) { + i = i || {} + var a = this, + l = t(e ? 'table[lay-filter="' + e + '"]' : h + '[lay-data]'), + n = + 'Table element property lay-data configuration item has a syntax error: ' + return ( + l.each(function () { + var a = t(this), + l = a.attr('lay-data') + try { + l = new Function('return ' + l)() + } catch (r) { + o.error(n + l, 'error') + } + var c = [], + s = t.extend( + { + elem: this, + cols: [], + data: [], + skin: a.attr('lay-skin'), + size: a.attr('lay-size'), + even: 'string' == typeof a.attr('lay-even'), + }, + d.config, + i, + l + ) + e && a.hide(), + a.find('thead>tr').each(function (e) { + ;(s.cols[e] = []), + t(this) + .children() + .each(function (i) { + var a = t(this), + l = a.attr('lay-data') + try { + l = new Function('return ' + l)() + } catch (r) { + return o.error(n + l) + } + var d = t.extend( + { + title: a.text(), + colspan: a.attr('colspan') || 0, + rowspan: a.attr('rowspan') || 0, + }, + l + ) + d.colspan < 2 && c.push(d), + s.cols[e].push(d) + }) + }), + a.find('tbody>tr').each(function (e) { + var i = t(this), + a = {} + i.children('td').each(function (e, i) { + var l = t(this), + n = l.data('field') + if (n) return (a[n] = l.html()) + }), + layui.each(c, function (e, t) { + var l = i.children('td').eq(e) + a[t.field] = l.html() + }), + (s.data[e] = a) + }), + d.render(s) + }), + a + ) + }), + (c.that = {}), + (c.config = {}), + (d.eachCols = function (e, i, a) { + var l = c.config[e] || {}, + n = [], + o = 0 + ;(a = t.extend(!0, [], a || l.cols)), + layui.each(a, function (e, t) { + layui.each(t, function (t, i) { + if (i.colGroup) { + var l = 0 + o++, + (i.CHILD_COLS = []), + layui.each(a[e + 1], function (e, t) { + t.PARENT_COL_INDEX || + (l > 1 && l == i.colspan) || + ((t.PARENT_COL_INDEX = o), + i.CHILD_COLS.push(t), + (l += parseInt( + t.colspan > 1 ? t.colspan : 1 + ))) + }) + } + i.PARENT_COL_INDEX || n.push(i) + }) + }) + var r = function (e) { + layui.each(e || n, function (e, t) { + return t.CHILD_COLS + ? r(t.CHILD_COLS) + : void ('function' == typeof i && i(e, t)) + }) + } + r() + }), + (d.checkStatus = function (e) { + var t = 0, + i = 0, + a = [], + l = d.cache[e] || [] + return ( + layui.each(l, function (e, l) { + return l.constructor === Array + ? void i++ + : void ( + l[d.config.checkName] && + (t++, a.push(d.clearCacheKey(l))) + ) + }), + { data: a, isAll: !!l.length && t === l.length - i } + ) + }), + (d.getData = function (e) { + var t = [], + i = d.cache[e] || [] + return ( + layui.each(i, function (e, i) { + i.constructor !== Array && t.push(d.clearCacheKey(i)) + }), + t + ) + }), + (d.exportFile = function (e, t, i) { + var a = this + ;(t = t || d.clearCacheKey(d.cache[e])), (i = i || 'csv') + var l = c.config[e] || {}, + n = { csv: 'text/csv', xls: 'application/vnd.ms-excel' }[i], + s = document.createElement('a') + return r.ie + ? o.error('IE_NOT_SUPPORT_EXPORTS') + : ((s.href = + 'data:' + + n + + ';charset=utf-8,\ufeff' + + encodeURIComponent( + (function () { + var i = [], + l = [], + n = [] + return ( + layui.each(t, function (t, a) { + var n = [] + 'object' == typeof e + ? (layui.each(e, function (e, a) { + 0 == t && i.push(a || '') + }), + layui.each( + d.clearCacheKey(a), + function (e, t) { + n.push( + '"' + + (t || '') + + '"' + ) + } + )) + : d.eachCols(e, function (e, l) { + if ( + l.field && + 'normal' == l.type && + !l.hide + ) { + var o = a[l.field] + ;(void 0 !== o && + null !== o) || + (o = ''), + 0 == t && + i.push( + l.title || + '' + ), + n.push( + '"' + + u( + l, + o, + a, + 'text' + ) + + '"' + ) + } + }), + l.push(n.join(',')) + }), + layui.each(a.dataTotal, function (e, t) { + n.push(t) + }), + i.join(',') + + '\r\n' + + l.join('\r\n') + + '\r\n' + + n.join(',') + ) + })() + )), + (s.download = + (l.title || 'table_' + (l.index || '')) + '.' + i), + document.body.appendChild(s), + s.click(), + void document.body.removeChild(s)) + }), + (d.resize = function (e) { + if (e) { + var t = s(e) + if (!t) return + c.that[e].resize() + } else + layui.each(c.that, function () { + this.resize() + }) + }), + (d.reload = function (e, t, i) { + var a = s(e) + if (a) { + var l = c.that[e] + return l.reload(t, i), c.call(l) + } + }), + (d.render = function (e) { + var t = new I(e) + return c.call(t) + }), + (d.clearCacheKey = function (e) { + return ( + (e = t.extend({}, e)), + delete e[d.config.checkName], + delete e[d.config.indexName], + e + ) + }), + d.init(), + e(y, d) +}) +layui.define('jquery', function (e) { + 'use strict' + var i = layui.$, + n = + (layui.hint(), + layui.device(), + { + config: {}, + set: function (e) { + var n = this + return (n.config = i.extend({}, n.config, e)), n + }, + on: function (e, i) { + return layui.onevent.call(this, t, e, i) + }, + }), + t = 'carousel', + a = 'layui-this', + l = '>*[carousel-item]>*', + o = 'layui-carousel-left', + r = 'layui-carousel-right', + d = 'layui-carousel-prev', + s = 'layui-carousel-next', + u = 'layui-carousel-arrow', + c = 'layui-carousel-ind', + m = function (e) { + var t = this + ;(t.config = i.extend({}, t.config, n.config, e)), t.render() + } + ;(m.prototype.config = { + width: '600px', + height: '280px', + full: !1, + arrow: 'hover', + indicator: 'inside', + autoplay: !0, + interval: 3e3, + anim: '', + trigger: 'click', + index: 0, + }), + (m.prototype.render = function () { + var e = this, + n = e.config + ;(n.elem = i(n.elem)), + n.elem[0] && + ((e.elemItem = n.elem.find(l)), + n.index < 0 && (n.index = 0), + n.index >= e.elemItem.length && + (n.index = e.elemItem.length - 1), + n.interval < 800 && (n.interval = 800), + n.full + ? n.elem.css({ + position: 'fixed', + width: '100%', + height: '100%', + zIndex: 9999, + }) + : n.elem.css({ width: n.width, height: n.height }), + n.elem.attr('lay-anim', n.anim), + e.elemItem.eq(n.index).addClass(a), + e.elemItem.length <= 1 || + (e.indicator(), e.arrow(), e.autoplay(), e.events())) + }), + (m.prototype.reload = function (e) { + var n = this + clearInterval(n.timer), + (n.config = i.extend({}, n.config, e)), + n.render() + }), + (m.prototype.prevIndex = function () { + var e = this, + i = e.config, + n = i.index - 1 + return n < 0 && (n = e.elemItem.length - 1), n + }), + (m.prototype.nextIndex = function () { + var e = this, + i = e.config, + n = i.index + 1 + return n >= e.elemItem.length && (n = 0), n + }), + (m.prototype.addIndex = function (e) { + var i = this, + n = i.config + ;(e = e || 1), + (n.index = n.index + e), + n.index >= i.elemItem.length && (n.index = 0) + }), + (m.prototype.subIndex = function (e) { + var i = this, + n = i.config + ;(e = e || 1), + (n.index = n.index - e), + n.index < 0 && (n.index = i.elemItem.length - 1) + }), + (m.prototype.autoplay = function () { + var e = this, + i = e.config + i.autoplay && + (clearInterval(e.timer), + (e.timer = setInterval(function () { + e.slide() + }, i.interval))) + }), + (m.prototype.arrow = function () { + var e = this, + n = e.config, + t = i( + [ + '', + '', + ].join('') + ) + n.elem.attr('lay-arrow', n.arrow), + n.elem.find('.' + u)[0] && n.elem.find('.' + u).remove(), + n.elem.append(t), + t.on('click', function () { + var n = i(this), + t = n.attr('lay-type') + e.slide(t) + }) + }), + (m.prototype.indicator = function () { + var e = this, + n = e.config, + t = (e.elemInd = i( + [ + '
      ', + ].join('') + )) + n.elem.attr('lay-indicator', n.indicator), + n.elem.find('.' + c)[0] && n.elem.find('.' + c).remove(), + n.elem.append(t), + 'updown' === n.anim && t.css('margin-top', -(t.height() / 2)), + t + .find('li') + .on( + 'hover' === n.trigger ? 'mouseover' : n.trigger, + function () { + var t = i(this), + a = t.index() + a > n.index + ? e.slide('add', a - n.index) + : a < n.index && e.slide('sub', n.index - a) + } + ) + }), + (m.prototype.slide = function (e, i) { + var n = this, + l = n.elemItem, + u = n.config, + c = u.index, + m = u.elem.attr('lay-filter') + n.haveSlide || + ('sub' === e + ? (n.subIndex(i), + l.eq(u.index).addClass(d), + setTimeout(function () { + l.eq(c).addClass(r), l.eq(u.index).addClass(r) + }, 50)) + : (n.addIndex(i), + l.eq(u.index).addClass(s), + setTimeout(function () { + l.eq(c).addClass(o), l.eq(u.index).addClass(o) + }, 50)), + setTimeout(function () { + l.removeClass(a + ' ' + d + ' ' + s + ' ' + o + ' ' + r), + l.eq(u.index).addClass(a), + (n.haveSlide = !1) + }, 300), + n.elemInd + .find('li') + .eq(u.index) + .addClass(a) + .siblings() + .removeClass(a), + (n.haveSlide = !0), + layui.event.call(this, t, 'change(' + m + ')', { + index: u.index, + prevIndex: c, + item: l.eq(u.index), + })) + }), + (m.prototype.events = function () { + var e = this, + i = e.config + i.elem.data('haveEvents') || + (i.elem + .on('mouseenter', function () { + clearInterval(e.timer) + }) + .on('mouseleave', function () { + e.autoplay() + }), + i.elem.data('haveEvents', !0)) + }), + (n.render = function (e) { + var i = new m(e) + return i + }), + e(t, n) +}) +layui.define('jquery', function (e) { + 'use strict' + var a = layui.jquery, + l = { + config: {}, + index: layui.rate ? layui.rate.index + 1e4 : 0, + set: function (e) { + var l = this + return (l.config = a.extend({}, l.config, e)), l + }, + on: function (e, a) { + return layui.onevent.call(this, n, e, a) + }, + }, + i = function () { + var e = this, + a = e.config + return { + setvalue: function (a) { + e.setvalue.call(e, a) + }, + config: a, + } + }, + n = 'rate', + t = 'layui-rate', + o = 'layui-icon-rate', + u = 'layui-icon-rate-solid', + s = 'layui-icon-rate-half', + r = 'layui-icon-rate-solid layui-icon-rate-half', + c = 'layui-icon-rate-solid layui-icon-rate', + f = 'layui-icon-rate layui-icon-rate-half', + v = function (e) { + var i = this + ;(i.index = ++l.index), + (i.config = a.extend({}, i.config, l.config, e)), + i.render() + } + ;(v.prototype.config = { + length: 5, + text: !1, + readonly: !1, + half: !1, + value: 0, + theme: '', + }), + (v.prototype.render = function () { + var e = this, + l = e.config, + i = l.theme ? 'style="color: ' + l.theme + ';"' : '' + ;(l.elem = a(l.elem)), + l.value > l.length && (l.value = l.length), + parseInt(l.value) !== l.value && + (l.half || + (l.value = + Math.ceil(l.value) - l.value < 0.5 + ? Math.ceil(l.value) + : Math.floor(l.value))) + for ( + var n = + '' + + (l.text ? '' + l.value + '星' : '') + + '' + var c = l.elem, + f = c.next('.' + t) + f[0] && f.remove(), + (e.elemTemp = a(n)), + (l.span = e.elemTemp.next('span')), + l.setText && l.setText(l.value), + c.html(e.elemTemp), + c.addClass('layui-inline'), + l.readonly || e.action() + }), + (v.prototype.setvalue = function (e) { + var a = this, + l = a.config + ;(l.value = e), a.render() + }), + (v.prototype.action = function () { + var e = this, + l = e.config, + i = e.elemTemp, + n = i.find('i').width() + i.children('li').each(function (e) { + var t = e + 1, + v = a(this) + v.on('click', function (e) { + if (((l.value = t), l.half)) { + var o = e.pageX - a(this).offset().left + o <= n / 2 && (l.value = l.value - 0.5) + } + l.text && i.next('span').text(l.value + '星'), + l.choose && l.choose(l.value), + l.setText && l.setText(l.value) + }), + v.on('mousemove', function (e) { + if ( + (i.find('i').each(function () { + a(this).addClass(o).removeClass(r) + }), + i.find('i:lt(' + t + ')').each(function () { + a(this).addClass(u).removeClass(f) + }), + l.half) + ) { + var c = e.pageX - a(this).offset().left + c <= n / 2 && + v.children('i').addClass(s).removeClass(u) + } + }), + v.on('mouseleave', function () { + i.find('i').each(function () { + a(this).addClass(o).removeClass(r) + }), + i + .find('i:lt(' + Math.floor(l.value) + ')') + .each(function () { + a(this).addClass(u).removeClass(f) + }), + l.half && + parseInt(l.value) !== l.value && + i + .children( + 'li:eq(' + Math.floor(l.value) + ')' + ) + .children('i') + .addClass(s) + .removeClass(c) + }) + }) + }), + (v.prototype.events = function () { + var e = this + e.config + }), + (l.render = function (e) { + var a = new v(e) + return i.call(a) + }), + e(n, l) +}) +layui.define('jquery', function (e) { + 'use strict' + var l = layui.$, + o = function (e) {}, + t = + '' + ;(o.prototype.load = function (e) { + var o, + i, + n, + r, + a = this, + c = 0 + e = e || {} + var f = l(e.elem) + if (f[0]) { + var m = l(e.scrollElem || document), + u = e.mb || 50, + s = !('isAuto' in e) || e.isAuto, + v = e.end || '没有更多了', + y = e.scrollElem && e.scrollElem !== document, + d = '加载更多', + h = l( + '
      ' + + d + + '
      ' + ) + f.find('.layui-flow-more')[0] || f.append(h) + var p = function (e, t) { + ;(e = l(e)), + h.before(e), + (t = 0 == t || null), + t ? h.html(v) : h.find('a').html(d), + (i = t), + (o = null), + n && n() + }, + g = function () { + ;(o = !0), + h.find('a').html(t), + 'function' == typeof e.done && e.done(++c, p) + } + if ( + (g(), + h.find('a').on('click', function () { + l(this) + i || o || g() + }), + e.isLazyimg) + ) + var n = a.lazyimg({ + elem: e.elem + ' img', + scrollElem: e.scrollElem, + }) + return s + ? (m.on('scroll', function () { + var e = l(this), + t = e.scrollTop() + r && clearTimeout(r), + !i && + f.width() && + (r = setTimeout(function () { + var i = y ? e.height() : l(window).height(), + n = y + ? e.prop('scrollHeight') + : document.documentElement + .scrollHeight + n - t - i <= u && (o || g()) + }, 100)) + }), + a) + : a + } + }), + (o.prototype.lazyimg = function (e) { + var o, + t = this, + i = 0 + e = e || {} + var n = l(e.scrollElem || document), + r = e.elem || 'img', + a = e.scrollElem && e.scrollElem !== document, + c = function (e, l) { + var o = n.scrollTop(), + r = o + l, + c = a + ? (function () { + return e.offset().top - n.offset().top + o + })() + : e.offset().top + if (c >= o && c <= r && !e.attr('src')) { + var m = e.attr('lay-src') + layui.img(m, function () { + var l = t.lazyimg.elem.eq(i) + e.attr('src', m).removeAttr('lay-src'), + l[0] && f(l), + i++ + }) + } + }, + f = function (e, o) { + var f = a ? (o || n).height() : l(window).height(), + m = n.scrollTop(), + u = m + f + if (((t.lazyimg.elem = l(r)), e)) c(e, f) + else + for (var s = 0; s < t.lazyimg.elem.length; s++) { + var v = t.lazyimg.elem.eq(s), + y = a + ? (function () { + return ( + v.offset().top - + n.offset().top + + m + ) + })() + : v.offset().top + if ((c(v, f), (i = s), y > u)) break + } + } + if ((f(), !o)) { + var m + n.on('scroll', function () { + var e = l(this) + m && clearTimeout(m), + (m = setTimeout(function () { + f(null, e) + }, 50)) + }), + (o = !0) + } + return f + }), + e('flow', new o()) +}) +layui.define(['layer', 'form'], function (t) { + 'use strict' + var e = layui.$, + i = layui.layer, + a = layui.form, + l = (layui.hint(), layui.device()), + n = 'layedit', + o = 'layui-show', + r = 'layui-disabled', + c = function () { + var t = this + ;(t.index = 0), + (t.config = { + tool: [ + 'strong', + 'italic', + 'underline', + 'del', + '|', + 'left', + 'center', + 'right', + '|', + 'link', + 'unlink', + 'face', + 'image', + ], + hideTool: [], + height: 280, + }) + } + ;(c.prototype.set = function (t) { + var i = this + return e.extend(!0, i.config, t), i + }), + (c.prototype.on = function (t, e) { + return layui.onevent(n, t, e) + }), + (c.prototype.build = function (t, i) { + i = i || {} + var a = this, + n = a.config, + r = 'layui-layedit', + c = e('string' == typeof t ? '#' + t : t), + u = 'LAY_layedit_' + ++a.index, + d = c.next('.' + r), + y = e.extend({}, n, i), + f = (function () { + var t = [], + e = {} + return ( + layui.each(y.hideTool, function (t, i) { + e[i] = !0 + }), + layui.each(y.tool, function (i, a) { + C[a] && !e[a] && t.push(C[a]) + }), + t.join('') + ) + })(), + m = e( + [ + '
      ', + '
      ' + + f + + '
      ', + '
      ', + '', + '
      ', + '
      ', + ].join('') + ) + return l.ie && l.ie < 8 + ? c.removeClass('layui-hide').addClass(o) + : (d[0] && d.remove(), + s.call(a, m, c[0], y), + c.addClass('layui-hide').after(m), + a.index) + }), + (c.prototype.getContent = function (t) { + var e = u(t) + if (e[0]) return d(e[0].document.body.innerHTML) + }), + (c.prototype.getText = function (t) { + var i = u(t) + if (i[0]) return e(i[0].document.body).text() + }), + (c.prototype.setContent = function (t, i, a) { + var l = u(t) + l[0] && + (a + ? e(l[0].document.body).append(i) + : e(l[0].document.body).html(i), + layedit.sync(t)) + }), + (c.prototype.sync = function (t) { + var i = u(t) + if (i[0]) { + var a = e('#' + i[1].attr('textarea')) + a.val(d(i[0].document.body.innerHTML)) + } + }), + (c.prototype.getSelection = function (t) { + var e = u(t) + if (e[0]) { + var i = m(e[0].document) + return document.selection ? i.text : i.toString() + } + }) + var s = function (t, i, a) { + var l = this, + n = t.find('iframe') + n.css({ height: a.height }).on('load', function () { + var o = n.contents(), + r = n.prop('contentWindow'), + c = o.find('head'), + s = e( + [ + '', + ].join('') + ), + u = o.find('body') + c.append(s), + u + .attr('contenteditable', 'true') + .css({ 'min-height': a.height }) + .html(i.value || ''), + y.apply(l, [r, n, i, a]), + g.call(l, r, t, a) + }) + }, + u = function (t) { + var i = e('#LAY_layedit_' + t), + a = i.prop('contentWindow') + return [a, i] + }, + d = function (t) { + return ( + 8 == l.ie && + (t = t.replace(/<.+>/g, function (t) { + return t.toLowerCase() + })), + t + ) + }, + y = function (t, a, n, o) { + var r = t.document, + c = e(r.body) + c.on('keydown', function (t) { + var e = t.keyCode + if (13 === e) { + var a = m(r), + l = p(a), + n = l.parentNode + if ('pre' === n.tagName.toLowerCase()) { + if (t.shiftKey) return + return i.msg('请暂时用shift+enter'), !1 + } + r.execCommand('formatBlock', !1, '

      ') + } + }), + e(n) + .parents('form') + .on('submit', function () { + var t = c.html() + 8 == l.ie && + (t = t.replace(/<.+>/g, function (t) { + return t.toLowerCase() + })), + (n.value = t) + }), + c.on('paste', function (e) { + r.execCommand('formatBlock', !1, '

      '), + setTimeout(function () { + f.call(t, c), (n.value = c.html()) + }, 100) + }) + }, + f = function (t) { + var i = this + i.document + t.find('*[style]').each(function () { + var t = this.style.textAlign + this.removeAttribute('style'), + e(this).css({ 'text-align': t || '' }) + }), + t.find('table').addClass('layui-table'), + t.find('script,link').remove() + }, + m = function (t) { + return t.selection + ? t.selection.createRange() + : t.getSelection().getRangeAt(0) + }, + p = function (t) { + return t.endContainer || t.parentElement().childNodes[0] + }, + v = function (t, i, a) { + var l = this.document, + n = document.createElement(t) + for (var o in i) n.setAttribute(o, i[o]) + if ((n.removeAttribute('text'), l.selection)) { + var r = a.text || i.text + if ('a' === t && !r) return + r && (n.innerHTML = r), + a.pasteHTML(e(n).prop('outerHTML')), + a.select() + } else { + var r = a.toString() || i.text + if ('a' === t && !r) return + r && (n.innerHTML = r), a.deleteContents(), a.insertNode(n) + } + }, + h = function (t, i) { + var a = this.document, + l = 'layedit-tool-active', + n = p(m(a)), + o = function (e) { + return t.find('.layedit-tool-' + e) + } + i && i[i.hasClass(l) ? 'removeClass' : 'addClass'](l), + t.find('>i').removeClass(l), + o('unlink').addClass(r), + e(n) + .parents() + .each(function () { + var t = this.tagName.toLowerCase(), + e = this.style.textAlign + ;('b' !== t && 'strong' !== t) || o('b').addClass(l), + ('i' !== t && 'em' !== t) || o('i').addClass(l), + 'u' === t && o('u').addClass(l), + 'strike' === t && o('d').addClass(l), + 'p' === t && + ('center' === e + ? o('center').addClass(l) + : 'right' === e + ? o('right').addClass(l) + : o('left').addClass(l)), + 'a' === t && + (o('link').addClass(l), + o('unlink').removeClass(r)) + }) + }, + g = function (t, a, l) { + var n = t.document, + o = e(n.body), + c = { + link: function (i) { + var a = p(i), + l = e(a).parent() + b.call( + o, + { href: l.attr('href'), target: l.attr('target') }, + function (e) { + var a = l[0] + 'A' === a.tagName + ? (a.href = e.url) + : v.call( + t, + 'a', + { + target: e.target, + href: e.url, + text: e.url, + }, + i + ) + } + ) + }, + unlink: function (t) { + n.execCommand('unlink') + }, + face: function (e) { + x.call(this, function (i) { + v.call(t, 'img', { src: i.src, alt: i.alt }, e) + }) + }, + image: function (a) { + var n = this + layui.use('upload', function (o) { + var r = l.uploadImage || {} + o.render({ + url: r.url, + method: r.type, + elem: e(n).find('input')[0], + done: function (e) { + 0 == e.code + ? ((e.data = e.data || {}), + v.call( + t, + 'img', + { + src: e.data.src, + alt: e.data.title, + }, + a + )) + : i.msg(e.msg || '上传失败') + }, + }) + }) + }, + code: function (e) { + k.call(o, function (i) { + v.call( + t, + 'pre', + { text: i.code, 'lay-lang': i.lang }, + e + ) + }) + }, + help: function () { + i.open({ + type: 2, + title: '帮助', + area: ['600px', '380px'], + shadeClose: !0, + shade: 0.1, + skin: 'layui-layer-msg', + content: ['', 'no'], + }) + }, + }, + s = a.find('.layui-layedit-tool'), + u = function () { + var i = e(this), + a = i.attr('layedit-event'), + l = i.attr('lay-command') + if (!i.hasClass(r)) { + o.focus() + var u = m(n) + u.commonAncestorContainer + l + ? (n.execCommand(l), + /justifyLeft|justifyCenter|justifyRight/.test( + l + ) && n.execCommand('formatBlock', !1, '

      '), + setTimeout(function () { + o.focus() + }, 10)) + : c[a] && c[a].call(this, u), + h.call(t, s, i) + } + }, + d = /image/ + s + .find('>i') + .on('mousedown', function () { + var t = e(this), + i = t.attr('layedit-event') + d.test(i) || u.call(this) + }) + .on('click', function () { + var t = e(this), + i = t.attr('layedit-event') + d.test(i) && u.call(this) + }), + o.on('click', function () { + h.call(t, s), i.close(x.index) + }) + }, + b = function (t, e) { + var l = this, + n = i.open({ + type: 1, + id: 'LAY_layedit_link', + area: '350px', + shade: 0.05, + shadeClose: !0, + moveType: 1, + title: '超链接', + skin: 'layui-layer-msg', + content: [ + '

      ', + ].join(''), + success: function (t, n) { + var o = 'submit(layedit-link-yes)' + a.render('radio'), + t + .find('.layui-btn-primary') + .on('click', function () { + i.close(n), l.focus() + }), + a.on(o, function (t) { + i.close(b.index), e && e(t.field) + }) + }, + }) + b.index = n + }, + x = function (t) { + var a = (function () { + var t = [ + '[微笑]', + '[嘻嘻]', + '[哈哈]', + '[可爱]', + '[可怜]', + '[挖鼻]', + '[吃惊]', + '[害羞]', + '[挤眼]', + '[闭嘴]', + '[鄙视]', + '[爱你]', + '[泪]', + '[偷笑]', + '[亲亲]', + '[生病]', + '[太开心]', + '[白眼]', + '[右哼哼]', + '[左哼哼]', + '[嘘]', + '[衰]', + '[委屈]', + '[吐]', + '[哈欠]', + '[抱抱]', + '[怒]', + '[疑问]', + '[馋嘴]', + '[拜拜]', + '[思考]', + '[汗]', + '[困]', + '[睡]', + '[钱]', + '[失望]', + '[酷]', + '[色]', + '[哼]', + '[鼓掌]', + '[晕]', + '[悲伤]', + '[抓狂]', + '[黑线]', + '[阴险]', + '[怒骂]', + '[互粉]', + '[心]', + '[伤心]', + '[猪头]', + '[熊猫]', + '[兔子]', + '[ok]', + '[耶]', + '[good]', + '[NO]', + '[赞]', + '[来]', + '[弱]', + '[草泥马]', + '[神马]', + '[囧]', + '[浮云]', + '[给力]', + '[围观]', + '[威武]', + '[奥特曼]', + '[礼物]', + '[钟]', + '[话筒]', + '[蜡烛]', + '[蛋糕]', + ], + e = {} + return ( + layui.each(t, function (t, i) { + e[i] = layui.cache.dir + 'images/face/' + t + '.gif' + }), + e + ) + })() + return ( + (x.hide = + x.hide || + function (t) { + 'face' !== e(t.target).attr('layedit-event') && + i.close(x.index) + }), + (x.index = i.tips( + (function () { + var t = [] + return ( + layui.each(a, function (e, i) { + t.push( + '
    • ' +
+										e +
+										'
    • ' + ) + }), + '' + ) + })(), + this, + { + tips: 1, + time: 0, + skin: 'layui-box layui-util-face', + maxWidth: 500, + success: function (l, n) { + l + .css({ marginTop: -4, marginLeft: -10 }) + .find('.layui-clear>li') + .on('click', function () { + t && + t({ + src: a[this.title], + alt: this.title, + }), + i.close(n) + }), + e(document) + .off('click', x.hide) + .on('click', x.hide) + }, + } + )) + ) + }, + k = function (t) { + var e = this, + l = i.open({ + type: 1, + id: 'LAY_layedit_code', + area: '550px', + shade: 0.05, + shadeClose: !0, + moveType: 1, + title: '插入代码', + skin: 'layui-layer-msg', + content: [ + '', + ].join(''), + success: function (l, n) { + var o = 'submit(layedit-code-yes)' + a.render('select'), + l + .find('.layui-btn-primary') + .on('click', function () { + i.close(n), e.focus() + }), + a.on(o, function (e) { + i.close(k.index), t && t(e.field) + }) + }, + }) + k.index = l + }, + C = { + html: '', + strong: '', + italic: '', + underline: + '', + del: '', + '|': '', + left: '', + center: '', + right: '', + link: '', + unlink: '', + face: '', + image: '', + code: '', + help: '', + }, + L = new c() + t(n, L) +}) +layui + .define('jquery', function (a) { + 'use strict' + var e = layui.$ + a('code', function (a) { + var l = [] + ;(a = a || {}), + (a.elem = e(a.elem || '.layui-code')), + (a.lang = 'lang' in a ? a.lang : 'code'), + a.elem.each(function () { + l.push(this) + }), + layui.each(l.reverse(), function (l, i) { + var t = e(i), + c = t.html() + ;(t.attr('lay-encode') || a.encode) && + (c = c + .replace(/&(?!#?[a-zA-Z0-9]+;)/g, '&') + .replace(//g, '>') + .replace(/'/g, ''') + .replace(/"/g, '"')), + t.html( + '
      1. ' + + c.replace(/[\r\t\n]+/g, '
      2. ') + + '
      ' + ), + t.find('>.layui-code-h3')[0] || + t.prepend( + '

      ' + + (t.attr('lay-title') || + a.title || + '</>') + + '' + + (t.attr('lay-lang') || a.lang || '') + + '

      ' + ) + var n = t.find('>.layui-code-ol') + t.addClass('layui-box layui-code-view'), + (t.attr('lay-skin') || a.skin) && + t.addClass( + 'layui-code-' + (t.attr('lay-skin') || a.skin) + ), + ((n.find('li').length / 100) | 0) > 0 && + n.css( + 'margin-left', + ((n.find('li').length / 100) | 0) + 'px' + ), + (t.attr('lay-height') || a.height) && + n.css( + 'max-height', + t.attr('lay-height') || a.height + ) + }) + }) + }) + .addcss('modules/code.css?v=1', 'skincodecss') diff --git a/web/layui__/comboTreePlugin.js b/web/layui__/comboTreePlugin.js new file mode 100644 index 0000000..c69fa22 --- /dev/null +++ b/web/layui__/comboTreePlugin.js @@ -0,0 +1,439 @@ +/*! + * jQuery ComboTree Plugin + * Author: Erhan FIRAT + * Mail: erhanfirat@gmail.com + * Licensed under the MIT license + * Version: 1.1 + */ + + +;(function ( $, window, document, undefined ) { + + // Create the defaults once + var comboTreePlugin = 'comboTree', + defaults = { + source: [], + isMultiple: false + }; + + // The actual plugin constructor + function ComboTree( element, options ) { + this.elemInput = element; + this._elemInput = $(element); + + this.options = $.extend( {}, defaults, options) ; + + this._defaults = defaults; + this._name = comboTreePlugin; + + this.init(); + } + + ComboTree.prototype.init = function () { + // Setting Doms + this.comboTreeId = 'comboTree' + Math.floor(Math.random() * 999999); + + this._elemInput.addClass('comboTreeInputBox'); + + if (this._elemInput.attr('id') === undefined) + this._elemInput.attr('id', this.comboTreeId + 'Input'); + this.elemInputId = this._elemInput.attr('id'); + + this._elemInput.wrap('
      '); + this._elemInput.wrap('
      '); + this._elemWrapper = $('#' + this.comboTreeId + 'Wrapper'); + + this._elemArrowBtn = $(''); + this._elemInput.after(this._elemArrowBtn); + this._elemWrapper.append('
      '); + + // DORP DOWN AREA + this._elemDropDownContainer = $('#' + this.comboTreeId + 'DropDownContainer'); + this._elemDropDownContainer.html(this.createSourceHTML()); + + this._elemItems = this._elemDropDownContainer.find('li'); + this._elemItemsTitle = this._elemDropDownContainer.find('span.comboTreeItemTitle'); + + // VARIABLES + this._selectedItem = {}; + this._selectedItems = []; + + this.bindings(); + }; + + + + // ********************************* + // SOURCES CODES + // ********************************* + + ComboTree.prototype.removeSourceHTML = function () { + this._elemDropDownContainer.html(''); + }; + + ComboTree.prototype.createSourceHTML = function () { + var sourceHTML = ''; + if (this.options.isMultiple) + sourceHTML = this.createFilterHTMLForMultiSelect(); + sourceHTML += this.createSourceSubItemsHTML(this.options.source); + return sourceHTML; + }; + + ComboTree.prototype.createFilterHTMLForMultiSelect = function (){ + return ''; + } + + ComboTree.prototype.createSourceSubItemsHTML = function (subItems) { + var subItemsHtml = '
      ')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('
      ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),s.find("."+d).html(l.setTips?l.setTips(u):u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['
      f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(m),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(m),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.children("."+p).children("i").each(function(e){i(this).on("click",function(){g=y.children("."+c).children("input").val(),g=1==e?g-l.stepl.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['
      ',"",'3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">','',"","","
      "].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['
      ','
      ','
      ','
      ','
      ','
      ',"
      ",'
      ','
      ',"
      ","
      ",'
      ','
      ','
      ',"
      ","
      ",function(){if(o.predefine){var e=['
      '];return layui.each(o.colors,function(i,o){e.push(['
      ','
      ',"
      "].join(""))}),e.push("
      "),e.join("")}return""}(),'
      ','
      ','',"
      ",'
      ','','',"","
      "].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:fa()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['
      t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=this,n=t(r+'[lay-filter="'+e+'"]');return n.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e),a.getValue(e)},u.prototype.getValue=function(e,i){i=i||t(r+'[lay-filter="'+e+'"]').eq(0);var a={},n={},l=i.find("input,select,textarea");return layui.each(l,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];a[i]=0|a[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(n[t.name]=t.value)}}),n},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),g=i.find("dl"),x=g.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=g.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),x.removeClass(o),y=null,x.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=g.children("dd."+s);if(e[0]){var t=e.position().top,i=g.height(),a=e.height();t>i&&g.scrollTop(t+g.scrollTop()-i+a-5),t<0&&g.scrollTop(t+g.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),g.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=g.children("dd."+s);if(g.children("dd."+o)[0]&&"next"===t){var i=g.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n无匹配项

      '):g.find("."+r).remove()},"keyup"),""===t&&g.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),x.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['
      ','
      ','','
      ','
      ',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("
      "+a.label+"
      "):t.push('
      '+a.innerHTML+"
      "):t.push('
      '+(a.innerHTML||i)+"
      ")}),0===t.length&&t.push('
      没有选项
      '),t.join("")}(r.find("*"))+"
      ","
      "].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['
      ",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+"":"",''].join(""),_switch:""+((n.checked?s[0]:s[1])||"")+""};return t[r]||t.checkbox}(),"
      "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['
      ',''+i[l.checked?0:1]+"","
      "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
      ","
      "].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=null,a=f.config.verify,s="layui-form-danger",o={},c=t(this),u=c.parents(r),d=u.find("*[lay-verify]"),v=c.parents("form")[0],h=c.attr("lay-filter");return layui.each(d,function(l,r){var o=t(this),c=o.attr("lay-verify").split("|"),u=o.attr("lay-verType"),d=o.val();if(o.removeClass(s),layui.each(c,function(t,l){var c,f="",v="function"==typeof a[l];if(a[l]){var c=v?f=a[l](d,r):!a[l][0].test(d);if(f=f||a[l][1],"required"===l&&(f=o.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof o.attr("lay-ignore")||"select"!==r.tagName.toLowerCase()&&!/^checkbox|radio$/.test(r.type)?o:o.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):/\bstring|number\b/.test(typeof f)&&i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){r.focus()},7),o.addClass(s),e=!0}}),e)return e}),!e&&(o=f.getValue(null,u),layui.event.call(this,l,"submit("+h+")",{elem:this,form:v,field:o}))},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n=layui.layer,t="tree",r={config:{},index:layui[t]?layui[t].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,t,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getChecked:function(){return e.getChecked.call(e)},setChecked:function(i){return e.setChecked.call(e,i)}}},c="layui-hide",d="layui-disabled",s="layui-tree-set",o="layui-tree-iconClick",h="layui-icon-addition",u="layui-icon-subtraction",p="layui-tree-entry",f="layui-tree-main",y="layui-tree-txt",v="layui-tree-pack",C="layui-tree-spread",k="layui-tree-setLineShort",m="layui-tree-showLine",x="layui-tree-lineExtend",b=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};b.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},b.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){i.constructor===Array&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},b.prototype.render=function(){var e=this,a=e.config;e.checkids=[];var n=i('
      ');e.tree(n);var t=a.elem=i(a.elem);if(t[0]){if(e.key=a.id||e.index,e.elem=n,e.elemNone=i('
      '+a.text.none+"
      "),t.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);a.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(k),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(k)}),e.events()}},b.prototype.renderForm=function(e){a.render(e,"LAY-tree-"+this.index)},b.prototype.tree=function(e,a){var n=this,t=n.config,r=a||t.data;layui.each(r,function(a,r){var l=r.children&&r.children.length>0,o=i('
      "),h=i(['
      ','
      ','
      ',function(){return t.showLine?l?'':'':''}(),function(){return t.showCheckbox?'':""}(),function(){return t.isJump&&r.href?''+(r.title||r.label||t.text.defaultNodeName)+"":''+(r.title||r.label||t.text.defaultNodeName)+""}(),"
      ",function(){if(!t.edit)return"";var e={add:'',update:'',del:''},i=['
      '];return t.edit===!0&&(t.edit=["update","del"]),"object"==typeof t.edit?(layui.each(t.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"
      "):void 0}(),"
      "].join(""));l&&(h.append(o),n.tree(o,r.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),l||h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),n.spread(h,r),t.showCheckbox&&(r.checked&&n.checkids.push(r.id),n.checkClick(h,r)),t.edit&&n.operate(h,r)})},b.prototype.spread=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f),c=r.find("."+o),k=r.find("."+y),m=t.onlyIconControl?c:l,x="";m.on("click",function(i){var a=e.children("."+v),n=m.children(".layui-icon")[0]?m.children(".layui-icon"):m.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasClass(C))e.removeClass(C),a.slideUp(200),n.removeClass(u).addClass(h);else if(e.addClass(C),a.slideDown(200),n.addClass(u).removeClass(h),t.accordion){var r=e.siblings("."+s);r.removeClass(C),r.children("."+v).slideUp(200),r.find(".layui-tree-icon").children(".layui-icon").removeClass(u).addClass(h)}}else x="normal"}),k.on("click",function(){var n=i(this);n.hasClass(d)||(x=e.hasClass(C)?t.onlyIconControl?"open":"close":t.onlyIconControl?"close":"open",t.click&&t.click({elem:e,state:x,data:a}))})},b.prototype.setCheckbox=function(e,i,a){var n=this,t=(n.config,a.prop("checked"));if(!a.prop("disabled")){if("object"==typeof i.children||e.find("."+v)[0]){var r=e.find("."+v).find('input[same="layuiTreeCheck"]');r.each(function(){this.disabled||(this.checked=t)})}var l=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+v),n=a.parent(),r=a.prev().find('input[same="layuiTreeCheck"]');t?r.prop("checked",t):(a.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||r.prop("checked",!1)),l(n)}};l(e),n.renderForm("checkbox")}},b.prototype.checkClick=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f);l.on("click",'input[same="layuiTreeCheck"]+',function(r){layui.stope(r);var l=i(this).prev(),c=l.prop("checked");l.prop("disabled")||(n.setCheckbox(e,a,l),t.oncheck&&t.oncheck({elem:e,checked:c,data:a}))})},b.prototype.operate=function(e,a){var t=this,r=t.config,l=e.children("."+p),d=l.children("."+f);l.children(".layui-tree-btnGroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),b=e.children("."+v),g={data:a,type:f,elem:e};if("add"==f){b[0]||(r.showLine?(d.find("."+o).addClass("layui-tree-icon"),d.find("."+o).children(".layui-icon").addClass(h).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(c),e.append('
      '));var w=r.operate&&r.operate(g),N={};if(N.title=r.text.defaultNodeName,N.id=w,t.tree(e.children("."+v),[N]),r.showLine)if(b[0])b.hasClass(x)||b.addClass(x),e.find("."+v).each(function(){i(this).children("."+s).last().addClass(k)}),b.children("."+s).last().prev().hasClass(k)?b.children("."+s).last().prev().removeClass(k):b.children("."+s).last().removeClass(k),!e.parent("."+v)[0]&&e.next()[0]&&b.children("."+s).last().removeClass(k);else{var T=e.siblings("."+s),L=1,A=e.parent("."+v);layui.each(T,function(e,a){i(a).children("."+v)[0]||(L=0)}),1==L?(T.children("."+v).addClass(m),T.children("."+v).children("."+s).removeClass(k),e.children("."+v).addClass(m),A.removeClass(x),A.children("."+s).last().children("."+v).children("."+s).last().addClass(k)):e.children("."+v).children("."+s).addClass(k)}if(!r.showCheckbox)return;if(d.find('input[same="layuiTreeCheck"]')[0].checked){var I=e.children("."+v).children("."+s).last();I.find('input[same="layuiTreeCheck"]')[0].checked=!0}t.renderForm("checkbox")}else if("update"==f){var F=d.children("."+y).html();d.children("."+y).html(""),d.append(''),d.children(".layui-tree-editInput").val(F).focus();var j=function(e){var i=e.val().trim();i=i?i:r.text.defaultNodeName,e.remove(),d.children("."+y).html(i),g.data.title=i,r.operate&&r.operate(g)};d.children(".layui-tree-editInput").blur(function(){j(i(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),j(i(this)))})}else n.confirm('确认删除该节点 "'+(a.title||"")+'" 吗?',function(a){if(r.operate&&r.operate(g),g.status="remove",n.close(a),!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+v)[0])return e.remove(),void t.elem.append(t.elemNone);if(e.siblings("."+s).children("."+p)[0]){if(r.showCheckbox){var l=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+p),n=e.parent("."+v).prev(),r=n.find('input[same="layuiTreeCheck"]')[0],c=1,d=0;0==r.checked&&(a.each(function(e,a){var n=i(a).find('input[same="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(d=1)}),1==c&&1==d&&(r.checked=!0,t.renderForm("checkbox"),l(n.parent("."+s))))}};l(e)}if(r.showLine){var d=e.siblings("."+s),h=1,f=e.parent("."+v);layui.each(d,function(e,a){i(a).children("."+v)[0]||(h=0)}),1==h?(b[0]||(f.removeClass(x),d.children("."+v).addClass(m),d.children("."+v).children("."+s).removeClass(k)),e.next()[0]?f.children("."+s).last().children("."+v).children("."+s).last().addClass(k):e.prev().children("."+v).children("."+s).last().addClass(k),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addClass(k)):!e.next()[0]&&e.hasClass(k)&&e.prev().addClass(k)}}else{var y=e.parent("."+v).prev();if(r.showLine){y.find("."+o).removeClass("layui-tree-icon"),y.find("."+o).children(".layui-icon").removeClass(u).addClass("layui-icon-file");var w=y.parents("."+v).eq(0);w.addClass(x),w.children("."+s).each(function(){i(this).children("."+v).children("."+s).last().addClass(k)})}else y.find(".layui-tree-iconArrow").addClass(c);e.parents("."+s).eq(0).removeClass(C),e.parent("."+v).remove()}e.remove()})})},b.prototype.events=function(){var e=this,a=e.config;e.elem.find(".layui-tree-checkedFirst");e.setChecked(e.checkids),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),t=n.val(),r=n.nextAll(),l=[];r.find("."+y).each(function(){var e=i(this).parents("."+p);if(i(this).html().indexOf(t)!=-1){l.push(i(this).parent());var a=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+v)[0]&&a(e.parent("."+v).parent("."+s))};a(e.parent("."+s))}}),r.find("."+p).each(function(){var e=i(this).parent("."+s);e.hasClass("layui-tree-searchShow")||e.addClass(c)}),0==r.find(".layui-tree-searchShow").length&&e.elem.append(e.elemNone),a.onsearch&&a.onsearch({elem:l})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextAll().find("."+p).each(function(){var e=i(this).parent("."+s);e.removeClass("layui-tree-searchShow "+c)}),i(".layui-tree-emptyText")[0]&&i(".layui-tree-emptyText").remove()})},b.prototype.getChecked=function(){var e=this,a=e.config,n=[],t=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var r=function(e,a){layui.each(e,function(e,t){layui.each(n,function(e,n){if(t.id==n){var l=i.extend({},t);return delete l.children,a.push(l),t.children&&(l.children=[],r(t.children,l.children)),!0}})})};return r(i.extend({},a.data),t),t},b.prototype.setChecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var t=i(this).data("id"),r=i(n).children("."+p).find('input[same="layuiTreeCheck"]'),l=r.next();if("number"==typeof e){if(t==e)return r[0].checked||l.click(),!1}else"object"==typeof e&&layui.each(e,function(e,i){if(i==t&&!r[0].checked)return l.click(),!0})})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getChecked=function(e){var i=l.that[e];return i.getChecked()},r.setChecked=function(e,i){var a=l.that[e];return a.setChecked(i)},r.render=function(e){var i=new b(e);return l.call(i)},e(t,r)});layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
      ','
      ','","
      ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
        ',"
        "].join("")},v=['
        ',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'
        ','",'","
        ",p({index:1,checkAllName:"layTransferRightCheckAll"}),"
        "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["
      • ",'',"
      • "].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('

        '+(t||"")+"

        ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return a.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)});layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,y,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.that[i]=e,c.config[i]=t),{config:t,reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},resize:function(){e.resize.call(e)}}},s=function(e){var t=c.config[e];return t||o.error("The ID option was not found in the table instance"),t||null},u=function(e,a,l,n){var o=e.templet?function(){return"function"==typeof e.templet?e.templet(l):i(t(e.templet).html()||String(a)).render(l)}():a;return n?t("
        "+o+"
        ").text():o},y="table",h=".layui-table",f="layui-hide",p="layui-none",v="layui-table-view",m=".layui-table-tool",g=".layui-table-box",b=".layui-table-init",x=".layui-table-header",k=".layui-table-body",C=".layui-table-main",w=".layui-table-fixed",T=".layui-table-fixed-l",A=".layui-table-fixed-r",L=".layui-table-total",N=".layui-table-page",S=".layui-table-sort",R="layui-table-edit",W="layui-table-hover",_=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colGroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
        ','
        ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
        ","
        "].join("")},E=['',"","
        "].join(""),z=['
        ',"{{# if(d.data.toolbar){ }}",'
        ','
        ','
        ',"
        ","{{# } }}",'
        ',"{{# if(d.data.loading){ }}",'
        ','',"
        ","{{# } }}","{{# var left, right; }}",'
        ',_(),"
        ",'
        ',E,"
        ","{{# if(left){ }}",'
        ','
        ',_({fixed:!0}),"
        ",'
        ',E,"
        ","
        ","{{# }; }}","{{# if(right){ }}",'
        ','
        ',_({fixed:"right"}),'
        ',"
        ",'
        ',E,"
        ","
        ","{{# }; }}","
        ","{{# if(d.data.totalRow){ }}",'
        ','','',"
        ","
        ","{{# } }}","{{# if(d.data.page){ }}",'
        ','
        ',"
        ","{{# } }}","","
        "].join(""),H=t(window),j=t(document),F=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};F.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"无数据"}},F.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||e.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=H.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+v),o=e.elem=t(i(z).render({VIEW_CLASS:v,data:a,index:e.index}));if(a.index=e.index,e.key=a.id||a.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(m),e.layBox=o.find(g),e.layHeader=o.find(x),e.layMain=o.find(C),e.layBody=o.find(k),e.layFixed=o.find(w),e.layFixLeft=o.find(T),e.layFixRight=o.find(A),e.layTotal=o.find(L),e.layPage=o.find(N),e.renderToolbar(),e.fullSize(),a.cols.length>1){var r=e.layFixed.find(x).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},F.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},F.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colGroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.HAS_PARENT||o>1&&o==n.colspan||(i.HAS_PARENT=!0,i.parentKey=e+"-"+l,o+=parseInt(i.colspan>1?i.colspan:1))}),n.colGroup=!0}t.initOpts(n)})})},F.prototype.renderToolbar=function(){var e=this,a=e.config,l=['
        ','
        ','
        '].join(""),n=e.layTool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if("string"==typeof a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},d=[];"object"==typeof a.defaultToolbar&&layui.each(a.defaultToolbar,function(e,t){var i="string"==typeof t?r[t]:t;i&&d.push('
        ')}),e.layTool.find(".layui-table-tool-self").html(d.join(""))},F.prototype.setParentCol=function(e,t){var i=this,a=i.config,l=i.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseInt(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addClass":"removeClass"](f),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setParentCol(e,d)}},F.prototype.setColsPatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setParentCol(i.hide,i.parentKey)})})},F.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minWidth||t.cellMinWidth;return d?void(d.colGroup||d.hide||(e?l&&ln&&a&&(l=(o-n)/a)};r(),r(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth;a.colGroup||a.hide||(0===a.width?e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var d=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+d+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},F.prototype.resize=function(){var e=this;e.fullSize(),e.setColsWidth(),e.scrollPatch()},F.prototype.reload=function(e){var i=this;e=e||{},delete i.haveInit,e.data&&e.data.constructor===Array&&delete i.config.data,i.config=t.extend(!0,{},i.config,e),i.render()},F.prototype.errorView=function(e){var i=this,a=i.layMain.find("."+p),l=t('
        '+(e||"Error")+"
        ");a[0]&&(i.layNone.remove(),a.remove()),i.layFixed.addClass(f),i.layMain.find("tbody").html(""),i.layMain.append(i.layNone=l),d.cache[i.key]=[]},F.prototype.page=1,F.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var r={};r[l.pageName]=e,r[l.limitName]=a.limit;var d=t.extend(r,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(d=JSON.stringify(d)),i.loading(),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:d,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.errorView(t[n.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+n.statusName+'": '+n.statusCode)):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.errorView("数据接口请求异常:"+t),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var c={},s=e*a.limit-a.limit;c[n.dataName]=a.data.concat().splice(s,a.limit),c[n.countName]=a.data.length,"object"==typeof a.totalRow&&(c[n.totalRowName]=t.extend({},a.totalRow)),i.renderData(c,e,c[n.countName]),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(c,e,c[n.countName])}},F.prototype.eachCols=function(e){var t=this;return d.eachCols(null,e,t.config.cols),t},F.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,y=e[s.response.dataName]||[],h=e[s.response.totalRowName],v=[],m=[],g=[],b=function(){var e;return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(y,function(a,l){var o=[],y=[],h=[],p=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexName]=a),c.eachCols(function(n,r){var c=r.field||n,v=s.index+"-"+r.key,m=l[c];if(void 0!==m&&null!==m||(m=""),!r.colGroup){var g=['','
        '+function(){var n=t.extend(!0,{LAY_INDEX:p},l),o=d.config.checkName;switch(r.type){case"checkbox":return'";case"radio":return n[o]&&(e=a),'';case"numbers":return p}return r.toolbar?i(t(r.toolbar).html()||"").render(n):u(r,m,n)}(),"
        "].join("");o.push(g),r.fixed&&"right"!==r.fixed&&y.push(g),"right"===r.fixed&&h.push(g)}}),v.push(''+o.join("")+""),m.push(''+y.join("")+""),g.push(''+h.join("")+""))}),c.layBody.scrollTop(0),c.layMain.find("."+p).remove(),c.layMain.find("tbody").html(v.join("")),c.layFixLeft.find("tbody").html(m.join("")),c.layFixRight.find("tbody").html(g.join("")),c.renderForm(),"number"==typeof e&&c.setThisRowChecked(e),c.syncCheckAll(),c.haveInit?c.scrollPatch():setTimeout(function(){c.scrollPatch()},50),c.haveInit=!0,l.close(c.tipsIndex),s.HAS_SET_COLS_PATCH||c.setColsPatch(),void(s.HAS_SET_COLS_PATCH=!0))};return d.cache[c.key]=y,c.layPage[0==o||0===y.length&&1==n?"addClass":"removeClass"](f),0===y.length?(c.renderForm(),c.errorView(s.text.none)):(c.layFixed.removeClass(f),r?b():(b(),c.renderTotal(y,h),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page)))))},F.prototype.renderTotal=function(e,t){var i=this,a=i.config,l={};if(a.totalRow){layui.each(e,function(e,t){0!==t.length&&i.eachCols(function(e,i){var a=i.field||e,n=t[a];i.totalRow&&(l[a]=(l[a]||0)+(parseFloat(n)||0))})}),i.dataTotal={};var n=[];i.eachCols(function(e,o){var r=o.field||e,d=function(){var e=o.totalRowText||"",i=parseFloat(l[r]).toFixed(2),a={};return a[r]=i,i=u(o,i,a),t?t[o.field]||e:o.totalRow?i||e:e}(),c=['','
        '+d,"
        "].join("");o.field&&(i.dataTotal[r]=d),n.push(c)}),i.layTotal.find("tbody").html(""+n.join("")+"")}},F.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},F.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},F.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},F.prototype.sort=function(e,i,a,l){var n,r,c=this,s={},u=c.config,h=u.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var v=c.layHeader.find("th .laytable-cell-"+p).find(S);c.layHeader.find("th").find(S).removeAttr("lay-sort"),v.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},u.autoSort&&("asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexName),delete c.sortKey)),s[u.response.dataName]=r||f,c.renderData(s,c.page,c.count,!0),l&&layui.event.call(e,y,"sort("+h+")",{field:n,type:i})},F.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(b).remove()):(i.layInit=t(['
        ','',"
        "].join("")),i.layBox.append(i.layInit)))},F.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},F.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},F.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(i,a){if(a.selectorText===".laytable-cell-"+e)return t(a),!0})},F.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=H.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e-=t.layPage.outerHeight()||41),t.layMain.css("height",e-2))},F.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},F.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('
        ');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var r=e.layMain.height(),d=r-l;e.layFixed.find(k).css("height",i.height()>=d?d:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](f),e.layFixRight.css("right",a-1)},F.prototype.events=function(){var e,i=this,a=i.config,o=t("body"),c={},s=i.layHeader.find("th"),h=".layui-table-cell",p=a.elem.attr("lay-filter");i.layTool.on("click","*[lay-event]",function(e){var o=t(this),c=o.attr("lay-event"),s=function(e){var l=t(e.list),n=t('
          ');n.html(l),a.height&&n.css("max-height",a.height-(i.layTool.outerHeight()||50)),o.find(".layui-table-tool-panel")[0]||o.append(n),i.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),j.trigger("table.tool.panel.remove"),l.close(i.tipsIndex),c){case"LAYTABLE_COLS":s({list:function(){var e=[];return i.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('
        • ')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var l=t(e.elem),n=this.checked,o=l.data("key"),r=l.data("parentkey");layui.each(a.cols,function(e,t){layui.each(t,function(t,l){if(e+"-"+t===o){var d=l.hide;l.hide=!n,i.elem.find('*[data-key="'+a.index+"-"+o+'"]')[n?"removeClass":"addClass"](f),d!=l.hide&&i.setParentCol(!n,r),i.resize()}})})})}});break;case"LAYTABLE_EXPORT":r.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):s({list:function(){return['
        • 导出到 Csv 文件
        • ','
        • 导出到 Excel 文件
        • '].join("")}(),done:function(e,l){l.on("click",function(){var e=t(this).data("type");d.exportFile.call(i,a.id,null,e)})}});break;case"LAYTABLE_PRINT":var u=window.open("打印窗口","_blank"),h=[""].join(""),v=t(i.layHeader.html());v.append(i.layMain.find("table").html()),v.append(i.layTotal.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),u.document.write(h+v.prop("outerHTML")),u.document.close(),u.print(),u.close()}layui.event.call(this,y,"toolbar("+p+")",t.extend({event:c,config:a},{}))}),s.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.data("unresize")||c.resizeStart||(c.allowResize=i.width()-l<=10,o.css("cursor",c.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);c.resizeStart||o.css("cursor","")}).on("mousedown",function(e){var l=t(this);if(c.allowResize){var n=l.data("key");e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],i.getCssRule(n,function(e){var t=e.style.width||l.outerWidth();c.rule=e,c.ruleWidth=parseFloat(t),c.minWidth=l.data("minwidth")||a.cellMinWidth})}}),j.on("mousemove",function(t){if(c.resizeStart){if(t.preventDefault(),c.rule){var a=c.ruleWidth+t.clientX-c.offset[0];a');return n[0].value=i.data("content")||l.text(),i.find("."+R)[0]||i.append(n),n.focus(),void layui.stope(e)}}).on("mouseenter","td",function(){b.call(this)}).on("mouseleave","td",function(){b.call(this,"hide")});var g="layui-table-grid-down",b=function(e){var i=t(this),a=i.children(h);if(!i.data("off"))if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('
          ')}};i.layBody.on("click","."+g,function(e){var n=t(this),o=n.parent(),d=o.children(h);i.tipsIndex=l.tips(['
          ',d.html(),"
          ",''].join(""),d[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:i.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}),layui.stope(e)}),i.layBody.on("click","*[lay-event]",function(){var e=t(this),a=e.parents("tr").eq(0).data("index");layui.event.call(this,y,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),i.setThisRowChecked(a)}),i.layMain.on("scroll",function(){var e=t(this),a=e.scrollLeft(),n=e.scrollTop();i.layHeader.scrollLeft(a),i.layTotal.scrollLeft(a),i.layFixed.find(k).scrollTop(n),l.close(i.tipsIndex)}),H.on("resize",function(){i.resize()})},function(){j.on("click",function(){j.trigger("table.remove.tool.panel")}),j.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()})}(),d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':h+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.that={},c.config={},d.eachCols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colGroup){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL_INDEX||l>1&&l==i.colspan||(t.PARENT_COL_INDEX=o,i.CHILD_COLS.push(t),l+=parseInt(t.colspan>1?t.colspan:1))})}i.PARENT_COL_INDEX||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?r(t.CHILD_COLS):void("function"==typeof i&&i(e,t))})};r()},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},d.exportFile=function(e,t,i){var a=this;t=t||d.clearCacheKey(d.cache[e]),i=i||"csv";var l=c.config[e]||{},n={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],s=document.createElement("a");return r.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(s.href="data:"+n+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],l=[],n=[];return layui.each(t,function(t,a){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearCacheKey(a),function(e,t){n.push('"'+(t||"")+'"')})):d.eachCols(e,function(e,l){if(l.field&&"normal"==l.type&&!l.hide){var o=a[l.field];void 0!==o&&null!==o||(o=""),0==t&&i.push(l.title||""),n.push('"'+u(l,o,a,"text")+'"')}}),l.push(n.join(","))}),layui.each(a.dataTotal,function(e,t){n.push(t)}),i.join(",")+"\r\n"+l.join("\r\n")+"\r\n"+n.join(",")}()),s.download=(l.title||"table_"+(l.index||""))+"."+i,document.body.appendChild(s),s.click(),void document.body.removeChild(s))},d.resize=function(e){if(e){var t=s(e);if(!t)return;c.that[e].resize()}else layui.each(c.that,function(){this.resize()})},d.reload=function(e,t){var i=s(e);if(i){var a=c.that[e];return a.reload(t),c.call(a)}},d.render=function(e){var t=new F(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(y,d)});layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
            ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
          "].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):al.length&&(l.value=l.length),parseInt(l.value)!==l.value&&(l.half||(l.value=Math.ceil(l.value)-l.value<.5?Math.ceil(l.value):Math.floor(l.value)));for(var n='
            ",s=1;s<=l.length;s++){var r='
          • ";l.half&&parseInt(l.value)!==l.value&&s==Math.ceil(l.value)?n=n+'
          • ":n+=r}n+="
          "+(l.text?''+l.value+"星":"")+"";var c=l.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),l.span=e.elemTemp.next("span"),l.setText&&l.setText(l.value),c.html(e.elemTemp),c.addClass("layui-inline"),l.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,l=a.config;l.value=e,a.render()},v.prototype.action=function(){var e=this,l=e.config,i=e.elemTemp,n=i.find("i").width();i.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(l.value=t,l.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(l.value=l.value-.5)}l.text&&i.next("span").text(l.value+"星"),l.choose&&l.choose(l.value),l.setText&&l.setText(l.value)}),v.on("mousemove",function(e){if(i.find("i").each(function(){a(this).addClass(o).removeClass(r)}),i.find("i:lt("+t+")").each(function(){a(this).addClass(u).removeClass(f)}),l.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(s).removeClass(u)}}),v.on("mouseleave",function(){i.find("i").each(function(){a(this).addClass(o).removeClass(r)}),i.find("i:lt("+Math.floor(l.value)+")").each(function(){a(this).addClass(u).removeClass(f)}),l.half&&parseInt(l.value)!==l.value&&i.children("li:eq("+Math.floor(l.value)+")").children("i").addClass(s).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},l.render=function(e){var a=new v(e);return i.call(a)},e(n,l)});layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=t(document),l=t("body");e=t.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],u=t(['
            ',e.bar1?'
          • '+c[0]+"
          • ":"",e.bar2?'
          • '+c[1]+"
          • ":"",'
          • '+c[2]+"
          • ","
          "].join("")),g=u.find("."+o),s=function(){var t=r.scrollTop();t>=e.showHeight?i||(g.show(),i=1):i&&(g.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&u.css(e.css),l.append(u),s(),u.find("li").on("click",function(){var i=t(this),n=i.attr("lay-type");"top"===n&&t("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){s()},100)}))},countdown:function(e,t,i){var n=this,a="function"==typeof t,o=new Date(e).getTime(),r=new Date(!t||a?(new Date).getTime():t).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=t);var u=setTimeout(function(){n.countdown(e,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,u),l<=0&&clearTimeout(u),u},timeAgo:function(e,t){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(e).getTime();return a>26784e5?(a=new Date(e),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),t||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=18e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=String(e),t=t||2;for(var n=e.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(e,n,a){var o=t("body");return a=a||"click",n=i.event[e]=t.extend(!0,i.event[e],n)||{},i.event.UTIL_EVENT_CALLBACK=i.event.UTIL_EVENT_CALLBACK||{},o.off(a,"*["+e+"]",i.event.UTIL_EVENT_CALLBACK[e]),i.event.UTIL_EVENT_CALLBACK[e]=function(){var i=t(this),a=i.attr(e);"function"==typeof n[a]&&n[a].call(this,i)},o.on(a,"*["+e+"]",i.event.UTIL_EVENT_CALLBACK[e]),n}};!function(e,t,i){"$:nomunge";function n(){a=t[l](function(){o.each(function(){var t=e(this),i=t.width(),n=t.height(),a=e.data(this,u);(i!==a.w||n!==a.h)&&t.trigger(c,[a.w=i,a.h=n])}),n()},r[g])}var a,o=e([]),r=e.resize=e.extend(e.resize,{}),l="setTimeout",c="resize",u=c+"-special-event",g="delay",s="throttleWindow";r[g]=250,r[s]=!0,e.event.special[c]={setup:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.add(t),e.data(this,u,{w:t.width(),h:t.height()}),1===o.length&&n()},teardown:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.not(t),t.removeData(u),o.length||clearTimeout(a)},add:function(t){function n(t,n,o){var r=e(this),l=e.data(this,u)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[s]&&this[l])return!1;var a;return e.isFunction(t)?(a=t,n):(a=t.handler,void(t.handler=n))}}}(t,window),e("util",i)});layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),!i&&f.width()&&(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("string"==typeof t?"#"+t:t),u="LAY_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hideTool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){C[a]&&!e[a]&&t.push(C[a])}),t.join("")}(),m=e(['
          ','
          '+f+"
          ",'
          ','',"
          ","
          "].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e([""].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"

          ")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"

          "),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"

          "),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['

            ','
          • ','','
            ','',"
            ","
          • ",'
          • ','','
            ','",'","
            ","
          • ",'
          • ','','',"
          • ","
          "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
        • '+e+'
        • ')}),'
            '+t.join("")+"
          "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['
            ','
          • ','','
            ','","
            ","
          • ",'
          • ','','
            ','',"
            ","
          • ",'
          • ','','',"
          • ","
          "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new c;t(n,w)});layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
          1. '+o.replace(/[\r\t\n]+/g,"
          2. ")+"
          "),c.find(">.layui-code-h3")[0]||c.prepend('

          '+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

          ");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); \ No newline at end of file diff --git a/web/layui__/layui.js b/web/layui__/layui.js new file mode 100644 index 0000000..ac47f23 --- /dev/null +++ b/web/layui__/layui.js @@ -0,0 +1,469 @@ +/** layui-v2.5.7 MIT License */ +!(function (e) { + 'use strict' + var t = document, + n = { modules: {}, status: {}, timeout: 10, event: {} }, + o = function () { + this.v = '2.5.7' + }, + r = (function () { + var e = t.currentScript + ? t.currentScript.src + : (function () { + for ( + var e, n = t.scripts, o = n.length - 1, r = o; + r > 0; + r-- + ) + if ('interactive' === n[r].readyState) { + e = n[r].src + break + } + return e || n[o].src + })() + return e.substring(0, e.lastIndexOf('/') + 1) + })(), + a = function (t) { + e.console && console.error && console.error('Layui hint: ' + t) + }, + i = + 'undefined' != typeof opera && + '[object Opera]' === opera.toString(), + u = { + layer: 'modules/layer', + laydate: 'modules/laydate', + laypage: 'modules/laypage', + laytpl: 'modules/laytpl', + layim: 'modules/layim', + layedit: 'modules/layedit', + form: 'modules/form', + upload: 'modules/upload', + transfer: 'modules/transfer', + tree: 'modules/tree', + table: 'modules/table', + element: 'modules/element', + rate: 'modules/rate', + colorpicker: 'modules/colorpicker', + slider: 'modules/slider', + carousel: 'modules/carousel', + flow: 'modules/flow', + util: 'modules/util', + code: 'modules/code', + jquery: 'modules/jquery', + mobile: 'modules/mobile', + 'layui.all': '../layui.all', + } + ;(o.prototype.cache = n), + (o.prototype.define = function (e, t) { + var o = this, + r = 'function' == typeof e, + a = function () { + var e = function (e, t) { + ;(layui[e] = t), (n.status[e] = !0) + } + return ( + 'function' == typeof t && + t(function (o, r) { + e(o, r), + (n.callback[o] = function () { + t(e) + }) + }), + this + ) + } + return ( + r && ((t = e), (e = [])), + !layui['layui.all'] && layui['layui.mobile'] + ? a.call(o) + : (o.use(e, a), o) + ) + }), + (o.prototype.use = function (e, o, l) { + function c(e, t) { + var o = + 'PLaySTATION 3' === navigator.platform + ? /^complete$/ + : /^(complete|loaded)$/ + ;('load' === e.type || + o.test((e.currentTarget || e.srcElement).readyState)) && + ((n.modules[d] = t), + y.removeChild(h), + (function r() { + return ++m > (1e3 * n.timeout) / 4 + ? a(d + ' is not a valid module') + : void (n.status[d] ? s() : setTimeout(r, 4)) + })()) + } + function s() { + l.push(layui[d]), + e.length > 1 + ? p.use(e.slice(1), o, l) + : 'function' == typeof o && o.apply(layui, l) + } + var p = this, + f = (n.dir = n.dir ? n.dir : r), + y = t.getElementsByTagName('head')[0] + ;(e = 'string' == typeof e ? [e] : e), + window.jQuery && + jQuery.fn.on && + (p.each(e, function (t, n) { + 'jquery' === n && e.splice(t, 1) + }), + (layui.jquery = layui.$ = jQuery)) + var d = e[0], + m = 0 + if ( + ((l = l || []), + (n.host = + n.host || + (f.match(/\/\/([\s\S]+?)\//) || [ + '//' + location.host + '/', + ])[0]), + 0 === e.length || + (layui['layui.all'] && u[d]) || + (!layui['layui.all'] && layui['layui.mobile'] && u[d])) + ) + return s(), p + var v = + (u[d] + ? f + 'lay/' + : /^\{\/\}/.test(p.modules[d]) + ? '' + : n.base || '') + + (p.modules[d] || d) + + '.js' + if ( + ((v = v.replace(/^\{\/\}/, '')), + !n.modules[d] && layui[d] && (n.modules[d] = v), + n.modules[d]) + ) + !(function g() { + return ++m > (1e3 * n.timeout) / 4 + ? a(d + ' is not a valid module') + : void ('string' == typeof n.modules[d] && n.status[d] + ? s() + : setTimeout(g, 4)) + })() + else { + var h = t.createElement('script') + ;(h.async = !0), + (h.charset = 'utf-8'), + (h.src = + v + + (function () { + var e = + n.version === !0 + ? n.v || new Date().getTime() + : n.version || '' + return e ? '?v=' + e : '' + })()), + y.appendChild(h), + !h.attachEvent || + (h.attachEvent.toString && + h.attachEvent.toString().indexOf('[native code') < 0) || + i + ? h.addEventListener( + 'load', + function (e) { + c(e, v) + }, + !1 + ) + : h.attachEvent('onreadystatechange', function (e) { + c(e, v) + }), + (n.modules[d] = v) + } + return p + }), + (o.prototype.getStyle = function (t, n) { + var o = t.currentStyle + ? t.currentStyle + : e.getComputedStyle(t, null) + return o[o.getPropertyValue ? 'getPropertyValue' : 'getAttribute']( + n + ) + }), + (o.prototype.link = function (e, o, r) { + var i = this, + u = t.createElement('link'), + l = t.getElementsByTagName('head')[0] + 'string' == typeof o && (r = o) + var c = (r || e).replace(/\.|\//g, ''), + s = (u.id = 'layuicss-' + c), + p = 0 + return ( + (u.rel = 'stylesheet'), + (u.href = e + (n.debug ? '?v=' + new Date().getTime() : '')), + (u.media = 'all'), + t.getElementById(s) || l.appendChild(u), + 'function' != typeof o + ? i + : ((function f() { + return ++p > (1e3 * n.timeout) / 100 + ? a(e + ' timeout') + : void (1989 === + parseInt( + i.getStyle(t.getElementById(s), 'width') + ) + ? (function () { + o() + })() + : setTimeout(f, 100)) + })(), + i) + ) + }), + (n.callback = {}), + (o.prototype.factory = function (e) { + if (layui[e]) + return 'function' == typeof n.callback[e] ? n.callback[e] : null + }), + (o.prototype.addcss = function (e, t, o) { + return layui.link(n.dir + 'css/' + e, t, o) + }), + (o.prototype.img = function (e, t, n) { + var o = new Image() + return ( + (o.src = e), + o.complete + ? t(o) + : ((o.onload = function () { + ;(o.onload = null), 'function' == typeof t && t(o) + }), + void (o.onerror = function (e) { + ;(o.onerror = null), 'function' == typeof n && n(e) + })) + ) + }), + (o.prototype.config = function (e) { + e = e || {} + for (var t in e) n[t] = e[t] + return this + }), + (o.prototype.modules = (function () { + var e = {} + for (var t in u) e[t] = u[t] + return e + })()), + (o.prototype.extend = function (e) { + var t = this + e = e || {} + for (var n in e) + t[n] || t.modules[n] + ? a('模块名 ' + n + ' 已被占用') + : (t.modules[n] = e[n]) + return t + }), + (o.prototype.router = function (e) { + var t = this, + e = e || location.hash, + n = { + path: [], + search: {}, + hash: (e.match(/[^#](#.*$)/) || [])[1] || '', + } + return /^#\//.test(e) + ? ((e = e.replace(/^#\//, '')), + (n.href = '/' + e), + (e = e.replace(/([^#])(#.*$)/, '$1').split('/') || []), + t.each(e, function (e, t) { + ;/^\w+=/.test(t) + ? (function () { + ;(t = t.split('=')), (n.search[t[0]] = t[1]) + })() + : n.path.push(t) + }), + n) + : n + }), + (o.prototype.url = function (e) { + var t = this, + n = { + pathname: (function () { + var t = e + ? (function () { + var t = + (e.match(/\.[^.]+?\/.+/) || [])[0] || '' + return t + .replace(/^[^\/]+/, '') + .replace(/\?.+/, '') + })() + : location.pathname + return t.replace(/^\//, '').split('/') + })(), + search: (function () { + var n = {}, + o = (e + ? (function () { + var t = (e.match(/\?.+/) || [])[0] || '' + return t.replace(/\#.+/, '') + })() + : location.search + ) + .replace(/^\?+/, '') + .split('&') + return ( + t.each(o, function (e, t) { + var o = t.indexOf('='), + r = (function () { + return o < 0 + ? t.substr(0, t.length) + : 0 !== o && t.substr(0, o) + })() + r && (n[r] = o > 0 ? t.substr(o + 1) : null) + }), + n + ) + })(), + hash: t.router( + (function () { + return e + ? (e.match(/#.+/) || [])[0] || '' + : location.hash + })() + ), + } + return n + }), + (o.prototype.data = function (t, n, o) { + if ( + ((t = t || 'layui'), + (o = o || localStorage), + e.JSON && e.JSON.parse) + ) { + if (null === n) return delete o[t] + n = 'object' == typeof n ? n : { key: n } + try { + var r = JSON.parse(o[t]) + } catch (a) { + var r = {} + } + return ( + 'value' in n && (r[n.key] = n.value), + n.remove && delete r[n.key], + (o[t] = JSON.stringify(r)), + n.key ? r[n.key] : r + ) + } + }), + (o.prototype.sessionData = function (e, t) { + return this.data(e, t, sessionStorage) + }), + (o.prototype.device = function (t) { + var n = navigator.userAgent.toLowerCase(), + o = function (e) { + var t = new RegExp(e + '/([^\\s\\_\\-]+)') + return (e = (n.match(t) || [])[1]), e || !1 + }, + r = { + os: (function () { + return /windows/.test(n) + ? 'windows' + : /linux/.test(n) + ? 'linux' + : /iphone|ipod|ipad|ios/.test(n) + ? 'ios' + : /mac/.test(n) + ? 'mac' + : void 0 + })(), + ie: (function () { + return ( + !!(e.ActiveXObject || 'ActiveXObject' in e) && + ((n.match(/msie\s(\d+)/) || [])[1] || '11') + ) + })(), + weixin: o('micromessenger'), + } + return ( + t && !r[t] && (r[t] = o(t)), + (r.android = /android/.test(n)), + (r.ios = 'ios' === r.os), + (r.mobile = !(!r.android && !r.ios)), + r + ) + }), + (o.prototype.hint = function () { + return { error: a } + }), + (o.prototype.each = function (e, t) { + var n, + o = this + if ('function' != typeof t) return o + if (((e = e || []), e.constructor === Object)) { + for (n in e) if (t.call(e[n], n, e[n])) break + } else for (n = 0; n < e.length && !t.call(e[n], n, e[n]); n++); + return o + }), + (o.prototype.sort = function (e, t, n) { + var o = JSON.parse(JSON.stringify(e || [])) + return t + ? (o.sort(function (e, n) { + var o = /^-?\d+$/, + r = e[t], + a = n[t] + return ( + o.test(r) && (r = parseFloat(r)), + o.test(a) && (a = parseFloat(a)), + r && !a + ? 1 + : !r && a + ? -1 + : r > a + ? 1 + : r < a + ? -1 + : 0 + ) + }), + n && o.reverse(), + o) + : o + }), + (o.prototype.stope = function (t) { + t = t || e.event + try { + t.stopPropagation() + } catch (n) { + t.cancelBubble = !0 + } + }), + (o.prototype.onevent = function (e, t, n) { + return 'string' != typeof e || 'function' != typeof n + ? this + : o.event(e, t, null, n) + }), + (o.prototype.event = o.event = function (e, t, o, r) { + var a = this, + i = null, + u = (t || '').match(/\((.*)\)$/) || [], + l = (e + '.' + t).replace(u[0], ''), + c = u[1] || '', + s = function (e, t) { + var n = t && t.call(a, o) + n === !1 && null === i && (i = !1) + } + return 'LAYUI-EVENT-REMOVE' === o + ? (delete (a.cache.event[l] || {})[c], a) + : r + ? ((n.event[l] = n.event[l] || {}), (n.event[l][c] = [r]), this) + : (layui.each(n.event[l], function (e, t) { + return '{*}' === c + ? void layui.each(t, s) + : ('' === e && layui.each(t, s), + void (c && e === c && layui.each(t, s))) + }), + i) + }), + (o.prototype.on = function (e, t, n) { + var o = this + return o.onevent.call(o, t, e, n) + }), + (o.prototype.off = function (e, t) { + var n = this + return n.event.call(n, t, e, 'LAYUI-EVENT-REMOVE') + }), + (e.layui = new o()) +})(window) diff --git a/web/layui__/moment.min.js b/web/layui__/moment.min.js new file mode 100644 index 0000000..ea0eb4d --- /dev/null +++ b/web/layui__/moment.min.js @@ -0,0 +1,2996 @@ +//! moment.js +//! version : 2.18.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +!(function (a, b) { + 'object' == typeof exports && 'undefined' != typeof module + ? (module.exports = b()) + : 'function' == typeof define && define.amd + ? define(b) + : (a.moment = b()) +})(this, function () { + 'use strict' + function a() { + return sd.apply(null, arguments) + } + function b(a) { + sd = a + } + function c(a) { + return ( + a instanceof Array || + '[object Array]' === Object.prototype.toString.call(a) + ) + } + function d(a) { + return ( + null != a && '[object Object]' === Object.prototype.toString.call(a) + ) + } + function e(a) { + var b + for (b in a) return !1 + return !0 + } + function f(a) { + return void 0 === a + } + function g(a) { + return ( + 'number' == typeof a || + '[object Number]' === Object.prototype.toString.call(a) + ) + } + function h(a) { + return ( + a instanceof Date || + '[object Date]' === Object.prototype.toString.call(a) + ) + } + function i(a, b) { + var c, + d = [] + for (c = 0; c < a.length; ++c) d.push(b(a[c], c)) + return d + } + function j(a, b) { + return Object.prototype.hasOwnProperty.call(a, b) + } + function k(a, b) { + for (var c in b) j(b, c) && (a[c] = b[c]) + return ( + j(b, 'toString') && (a.toString = b.toString), + j(b, 'valueOf') && (a.valueOf = b.valueOf), + a + ) + } + function l(a, b, c, d) { + return sb(a, b, c, d, !0).utc() + } + function m() { + return { + empty: !1, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: !1, + invalidMonth: null, + invalidFormat: !1, + userInvalidated: !1, + iso: !1, + parsedDateParts: [], + meridiem: null, + rfc2822: !1, + weekdayMismatch: !1, + } + } + function n(a) { + return null == a._pf && (a._pf = m()), a._pf + } + function o(a) { + if (null == a._isValid) { + var b = n(a), + c = ud.call(b.parsedDateParts, function (a) { + return null != a + }), + d = + !isNaN(a._d.getTime()) && + b.overflow < 0 && + !b.empty && + !b.invalidMonth && + !b.invalidWeekday && + !b.nullInput && + !b.invalidFormat && + !b.userInvalidated && + (!b.meridiem || (b.meridiem && c)) + if ( + (a._strict && + (d = + d && + 0 === b.charsLeftOver && + 0 === b.unusedTokens.length && + void 0 === b.bigHour), + null != Object.isFrozen && Object.isFrozen(a)) + ) + return d + a._isValid = d + } + return a._isValid + } + function p(a) { + var b = l(NaN) + return null != a ? k(n(b), a) : (n(b).userInvalidated = !0), b + } + function q(a, b) { + var c, d, e + if ( + (f(b._isAMomentObject) || (a._isAMomentObject = b._isAMomentObject), + f(b._i) || (a._i = b._i), + f(b._f) || (a._f = b._f), + f(b._l) || (a._l = b._l), + f(b._strict) || (a._strict = b._strict), + f(b._tzm) || (a._tzm = b._tzm), + f(b._isUTC) || (a._isUTC = b._isUTC), + f(b._offset) || (a._offset = b._offset), + f(b._pf) || (a._pf = n(b)), + f(b._locale) || (a._locale = b._locale), + vd.length > 0) + ) + for (c = 0; c < vd.length; c++) + (d = vd[c]), (e = b[d]), f(e) || (a[d] = e) + return a + } + function r(b) { + q(this, b), + (this._d = new Date(null != b._d ? b._d.getTime() : NaN)), + this.isValid() || (this._d = new Date(NaN)), + wd === !1 && ((wd = !0), a.updateOffset(this), (wd = !1)) + } + function s(a) { + return a instanceof r || (null != a && null != a._isAMomentObject) + } + function t(a) { + return a < 0 ? Math.ceil(a) || 0 : Math.floor(a) + } + function u(a) { + var b = +a, + c = 0 + return 0 !== b && isFinite(b) && (c = t(b)), c + } + function v(a, b, c) { + var d, + e = Math.min(a.length, b.length), + f = Math.abs(a.length - b.length), + g = 0 + for (d = 0; d < e; d++) + ((c && a[d] !== b[d]) || (!c && u(a[d]) !== u(b[d]))) && g++ + return g + f + } + function w(b) { + a.suppressDeprecationWarnings === !1 && + 'undefined' != typeof console && + console.warn && + console.warn('Deprecation warning: ' + b) + } + function x(b, c) { + var d = !0 + return k(function () { + if ( + (null != a.deprecationHandler && a.deprecationHandler(null, b), + d) + ) { + for (var e, f = [], g = 0; g < arguments.length; g++) { + if (((e = ''), 'object' == typeof arguments[g])) { + e += '\n[' + g + '] ' + for (var h in arguments[0]) + e += h + ': ' + arguments[0][h] + ', ' + e = e.slice(0, -2) + } else e = arguments[g] + f.push(e) + } + w( + b + + '\nArguments: ' + + Array.prototype.slice.call(f).join('') + + '\n' + + new Error().stack + ), + (d = !1) + } + return c.apply(this, arguments) + }, c) + } + function y(b, c) { + null != a.deprecationHandler && a.deprecationHandler(b, c), + xd[b] || (w(c), (xd[b] = !0)) + } + function z(a) { + return ( + a instanceof Function || + '[object Function]' === Object.prototype.toString.call(a) + ) + } + function A(a) { + var b, c + for (c in a) (b = a[c]), z(b) ? (this[c] = b) : (this['_' + c] = b) + ;(this._config = a), + (this._dayOfMonthOrdinalParseLenient = new RegExp( + (this._dayOfMonthOrdinalParse.source || + this._ordinalParse.source) + + '|' + + /\d{1,2}/.source + )) + } + function B(a, b) { + var c, + e = k({}, a) + for (c in b) + j(b, c) && + (d(a[c]) && d(b[c]) + ? ((e[c] = {}), k(e[c], a[c]), k(e[c], b[c])) + : null != b[c] + ? (e[c] = b[c]) + : delete e[c]) + for (c in a) j(a, c) && !j(b, c) && d(a[c]) && (e[c] = k({}, e[c])) + return e + } + function C(a) { + null != a && this.set(a) + } + function D(a, b, c) { + var d = this._calendar[a] || this._calendar.sameElse + return z(d) ? d.call(b, c) : d + } + function E(a) { + var b = this._longDateFormat[a], + c = this._longDateFormat[a.toUpperCase()] + return b || !c + ? b + : ((this._longDateFormat[a] = c.replace( + /MMMM|MM|DD|dddd/g, + function (a) { + return a.slice(1) + } + )), + this._longDateFormat[a]) + } + function F() { + return this._invalidDate + } + function G(a) { + return this._ordinal.replace('%d', a) + } + function H(a, b, c, d) { + var e = this._relativeTime[c] + return z(e) ? e(a, b, c, d) : e.replace(/%d/i, a) + } + function I(a, b) { + var c = this._relativeTime[a > 0 ? 'future' : 'past'] + return z(c) ? c(b) : c.replace(/%s/i, b) + } + function J(a, b) { + var c = a.toLowerCase() + Hd[c] = Hd[c + 's'] = Hd[b] = a + } + function K(a) { + return 'string' == typeof a ? Hd[a] || Hd[a.toLowerCase()] : void 0 + } + function L(a) { + var b, + c, + d = {} + for (c in a) j(a, c) && ((b = K(c)), b && (d[b] = a[c])) + return d + } + function M(a, b) { + Id[a] = b + } + function N(a) { + var b = [] + for (var c in a) b.push({ unit: c, priority: Id[c] }) + return ( + b.sort(function (a, b) { + return a.priority - b.priority + }), + b + ) + } + function O(b, c) { + return function (d) { + return null != d + ? (Q(this, b, d), a.updateOffset(this, c), this) + : P(this, b) + } + } + function P(a, b) { + return a.isValid() ? a._d['get' + (a._isUTC ? 'UTC' : '') + b]() : NaN + } + function Q(a, b, c) { + a.isValid() && a._d['set' + (a._isUTC ? 'UTC' : '') + b](c) + } + function R(a) { + return (a = K(a)), z(this[a]) ? this[a]() : this + } + function S(a, b) { + if ('object' == typeof a) { + a = L(a) + for (var c = N(a), d = 0; d < c.length; d++) + this[c[d].unit](a[c[d].unit]) + } else if (((a = K(a)), z(this[a]))) return this[a](b) + return this + } + function T(a, b, c) { + var d = '' + Math.abs(a), + e = b - d.length, + f = a >= 0 + return ( + (f ? (c ? '+' : '') : '-') + + Math.pow(10, Math.max(0, e)).toString().substr(1) + + d + ) + } + function U(a, b, c, d) { + var e = d + 'string' == typeof d && + (e = function () { + return this[d]() + }), + a && (Md[a] = e), + b && + (Md[b[0]] = function () { + return T(e.apply(this, arguments), b[1], b[2]) + }), + c && + (Md[c] = function () { + return this.localeData().ordinal( + e.apply(this, arguments), + a + ) + }) + } + function V(a) { + return a.match(/\[[\s\S]/) + ? a.replace(/^\[|\]$/g, '') + : a.replace(/\\/g, '') + } + function W(a) { + var b, + c, + d = a.match(Jd) + for (b = 0, c = d.length; b < c; b++) + Md[d[b]] ? (d[b] = Md[d[b]]) : (d[b] = V(d[b])) + return function (b) { + var e, + f = '' + for (e = 0; e < c; e++) f += z(d[e]) ? d[e].call(b, a) : d[e] + return f + } + } + function X(a, b) { + return a.isValid() + ? ((b = Y(b, a.localeData())), (Ld[b] = Ld[b] || W(b)), Ld[b](a)) + : a.localeData().invalidDate() + } + function Y(a, b) { + function c(a) { + return b.longDateFormat(a) || a + } + var d = 5 + for (Kd.lastIndex = 0; d >= 0 && Kd.test(a); ) + (a = a.replace(Kd, c)), (Kd.lastIndex = 0), (d -= 1) + return a + } + function Z(a, b, c) { + ce[a] = z(b) + ? b + : function (a, d) { + return a && c ? c : b + } + } + function $(a, b) { + return j(ce, a) ? ce[a](b._strict, b._locale) : new RegExp(_(a)) + } + function _(a) { + return aa( + a + .replace('\\', '') + .replace( + /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, + function (a, b, c, d, e) { + return b || c || d || e + } + ) + ) + } + function aa(a) { + return a.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + } + function ba(a, b) { + var c, + d = b + for ( + 'string' == typeof a && (a = [a]), + g(b) && + (d = function (a, c) { + c[b] = u(a) + }), + c = 0; + c < a.length; + c++ + ) + de[a[c]] = d + } + function ca(a, b) { + ba(a, function (a, c, d, e) { + ;(d._w = d._w || {}), b(a, d._w, d, e) + }) + } + function da(a, b, c) { + null != b && j(de, a) && de[a](b, c._a, c, a) + } + function ea(a, b) { + return new Date(Date.UTC(a, b + 1, 0)).getUTCDate() + } + function fa(a, b) { + return a + ? c(this._months) + ? this._months[a.month()] + : this._months[ + (this._months.isFormat || oe).test(b) + ? 'format' + : 'standalone' + ][a.month()] + : c(this._months) + ? this._months + : this._months.standalone + } + function ga(a, b) { + return a + ? c(this._monthsShort) + ? this._monthsShort[a.month()] + : this._monthsShort[oe.test(b) ? 'format' : 'standalone'][ + a.month() + ] + : c(this._monthsShort) + ? this._monthsShort + : this._monthsShort.standalone + } + function ha(a, b, c) { + var d, + e, + f, + g = a.toLocaleLowerCase() + if (!this._monthsParse) + for ( + this._monthsParse = [], + this._longMonthsParse = [], + this._shortMonthsParse = [], + d = 0; + d < 12; + ++d + ) + (f = l([2e3, d])), + (this._shortMonthsParse[d] = this.monthsShort( + f, + '' + ).toLocaleLowerCase()), + (this._longMonthsParse[d] = this.months( + f, + '' + ).toLocaleLowerCase()) + return c + ? 'MMM' === b + ? ((e = ne.call(this._shortMonthsParse, g)), + e !== -1 ? e : null) + : ((e = ne.call(this._longMonthsParse, g)), e !== -1 ? e : null) + : 'MMM' === b + ? ((e = ne.call(this._shortMonthsParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._longMonthsParse, g)), + e !== -1 ? e : null)) + : ((e = ne.call(this._longMonthsParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._shortMonthsParse, g)), + e !== -1 ? e : null)) + } + function ia(a, b, c) { + var d, e, f + if (this._monthsParseExact) return ha.call(this, a, b, c) + for ( + this._monthsParse || + ((this._monthsParse = []), + (this._longMonthsParse = []), + (this._shortMonthsParse = [])), + d = 0; + d < 12; + d++ + ) { + if ( + ((e = l([2e3, d])), + c && + !this._longMonthsParse[d] && + ((this._longMonthsParse[d] = new RegExp( + '^' + this.months(e, '').replace('.', '') + '$', + 'i' + )), + (this._shortMonthsParse[d] = new RegExp( + '^' + this.monthsShort(e, '').replace('.', '') + '$', + 'i' + ))), + c || + this._monthsParse[d] || + ((f = + '^' + + this.months(e, '') + + '|^' + + this.monthsShort(e, '')), + (this._monthsParse[d] = new RegExp( + f.replace('.', ''), + 'i' + ))), + c && 'MMMM' === b && this._longMonthsParse[d].test(a)) + ) + return d + if (c && 'MMM' === b && this._shortMonthsParse[d].test(a)) return d + if (!c && this._monthsParse[d].test(a)) return d + } + } + function ja(a, b) { + var c + if (!a.isValid()) return a + if ('string' == typeof b) + if (/^\d+$/.test(b)) b = u(b) + else if (((b = a.localeData().monthsParse(b)), !g(b))) return a + return ( + (c = Math.min(a.date(), ea(a.year(), b))), + a._d['set' + (a._isUTC ? 'UTC' : '') + 'Month'](b, c), + a + ) + } + function ka(b) { + return null != b + ? (ja(this, b), a.updateOffset(this, !0), this) + : P(this, 'Month') + } + function la() { + return ea(this.year(), this.month()) + } + function ma(a) { + return this._monthsParseExact + ? (j(this, '_monthsRegex') || oa.call(this), + a ? this._monthsShortStrictRegex : this._monthsShortRegex) + : (j(this, '_monthsShortRegex') || (this._monthsShortRegex = re), + this._monthsShortStrictRegex && a + ? this._monthsShortStrictRegex + : this._monthsShortRegex) + } + function na(a) { + return this._monthsParseExact + ? (j(this, '_monthsRegex') || oa.call(this), + a ? this._monthsStrictRegex : this._monthsRegex) + : (j(this, '_monthsRegex') || (this._monthsRegex = se), + this._monthsStrictRegex && a + ? this._monthsStrictRegex + : this._monthsRegex) + } + function oa() { + function a(a, b) { + return b.length - a.length + } + var b, + c, + d = [], + e = [], + f = [] + for (b = 0; b < 12; b++) + (c = l([2e3, b])), + d.push(this.monthsShort(c, '')), + e.push(this.months(c, '')), + f.push(this.months(c, '')), + f.push(this.monthsShort(c, '')) + for (d.sort(a), e.sort(a), f.sort(a), b = 0; b < 12; b++) + (d[b] = aa(d[b])), (e[b] = aa(e[b])) + for (b = 0; b < 24; b++) f[b] = aa(f[b]) + ;(this._monthsRegex = new RegExp('^(' + f.join('|') + ')', 'i')), + (this._monthsShortRegex = this._monthsRegex), + (this._monthsStrictRegex = new RegExp( + '^(' + e.join('|') + ')', + 'i' + )), + (this._monthsShortStrictRegex = new RegExp( + '^(' + d.join('|') + ')', + 'i' + )) + } + function pa(a) { + return qa(a) ? 366 : 365 + } + function qa(a) { + return (a % 4 === 0 && a % 100 !== 0) || a % 400 === 0 + } + function ra() { + return qa(this.year()) + } + function sa(a, b, c, d, e, f, g) { + var h = new Date(a, b, c, d, e, f, g) + return ( + a < 100 && a >= 0 && isFinite(h.getFullYear()) && h.setFullYear(a), + h + ) + } + function ta(a) { + var b = new Date(Date.UTC.apply(null, arguments)) + return ( + a < 100 && + a >= 0 && + isFinite(b.getUTCFullYear()) && + b.setUTCFullYear(a), + b + ) + } + function ua(a, b, c) { + var d = 7 + b - c, + e = (7 + ta(a, 0, d).getUTCDay() - b) % 7 + return -e + d - 1 + } + function va(a, b, c, d, e) { + var f, + g, + h = (7 + c - d) % 7, + i = ua(a, d, e), + j = 1 + 7 * (b - 1) + h + i + return ( + j <= 0 + ? ((f = a - 1), (g = pa(f) + j)) + : j > pa(a) + ? ((f = a + 1), (g = j - pa(a))) + : ((f = a), (g = j)), + { year: f, dayOfYear: g } + ) + } + function wa(a, b, c) { + var d, + e, + f = ua(a.year(), b, c), + g = Math.floor((a.dayOfYear() - f - 1) / 7) + 1 + return ( + g < 1 + ? ((e = a.year() - 1), (d = g + xa(e, b, c))) + : g > xa(a.year(), b, c) + ? ((d = g - xa(a.year(), b, c)), (e = a.year() + 1)) + : ((e = a.year()), (d = g)), + { week: d, year: e } + ) + } + function xa(a, b, c) { + var d = ua(a, b, c), + e = ua(a + 1, b, c) + return (pa(a) - d + e) / 7 + } + function ya(a) { + return wa(a, this._week.dow, this._week.doy).week + } + function za() { + return this._week.dow + } + function Aa() { + return this._week.doy + } + function Ba(a) { + var b = this.localeData().week(this) + return null == a ? b : this.add(7 * (a - b), 'd') + } + function Ca(a) { + var b = wa(this, 1, 4).week + return null == a ? b : this.add(7 * (a - b), 'd') + } + function Da(a, b) { + return 'string' != typeof a + ? a + : isNaN(a) + ? ((a = b.weekdaysParse(a)), 'number' == typeof a ? a : null) + : parseInt(a, 10) + } + function Ea(a, b) { + return 'string' == typeof a + ? b.weekdaysParse(a) % 7 || 7 + : isNaN(a) + ? null + : a + } + function Fa(a, b) { + return a + ? c(this._weekdays) + ? this._weekdays[a.day()] + : this._weekdays[ + this._weekdays.isFormat.test(b) + ? 'format' + : 'standalone' + ][a.day()] + : c(this._weekdays) + ? this._weekdays + : this._weekdays.standalone + } + function Ga(a) { + return a ? this._weekdaysShort[a.day()] : this._weekdaysShort + } + function Ha(a) { + return a ? this._weekdaysMin[a.day()] : this._weekdaysMin + } + function Ia(a, b, c) { + var d, + e, + f, + g = a.toLocaleLowerCase() + if (!this._weekdaysParse) + for ( + this._weekdaysParse = [], + this._shortWeekdaysParse = [], + this._minWeekdaysParse = [], + d = 0; + d < 7; + ++d + ) + (f = l([2e3, 1]).day(d)), + (this._minWeekdaysParse[d] = this.weekdaysMin( + f, + '' + ).toLocaleLowerCase()), + (this._shortWeekdaysParse[d] = this.weekdaysShort( + f, + '' + ).toLocaleLowerCase()), + (this._weekdaysParse[d] = this.weekdays( + f, + '' + ).toLocaleLowerCase()) + return c + ? 'dddd' === b + ? ((e = ne.call(this._weekdaysParse, g)), e !== -1 ? e : null) + : 'ddd' === b + ? ((e = ne.call(this._shortWeekdaysParse, g)), + e !== -1 ? e : null) + : ((e = ne.call(this._minWeekdaysParse, g)), + e !== -1 ? e : null) + : 'dddd' === b + ? ((e = ne.call(this._weekdaysParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._shortWeekdaysParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._minWeekdaysParse, g)), + e !== -1 ? e : null))) + : 'ddd' === b + ? ((e = ne.call(this._shortWeekdaysParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._weekdaysParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._minWeekdaysParse, g)), + e !== -1 ? e : null))) + : ((e = ne.call(this._minWeekdaysParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._weekdaysParse, g)), + e !== -1 + ? e + : ((e = ne.call(this._shortWeekdaysParse, g)), + e !== -1 ? e : null))) + } + function Ja(a, b, c) { + var d, e, f + if (this._weekdaysParseExact) return Ia.call(this, a, b, c) + for ( + this._weekdaysParse || + ((this._weekdaysParse = []), + (this._minWeekdaysParse = []), + (this._shortWeekdaysParse = []), + (this._fullWeekdaysParse = [])), + d = 0; + d < 7; + d++ + ) { + if ( + ((e = l([2e3, 1]).day(d)), + c && + !this._fullWeekdaysParse[d] && + ((this._fullWeekdaysParse[d] = new RegExp( + '^' + this.weekdays(e, '').replace('.', '.?') + '$', + 'i' + )), + (this._shortWeekdaysParse[d] = new RegExp( + '^' + + this.weekdaysShort(e, '').replace('.', '.?') + + '$', + 'i' + )), + (this._minWeekdaysParse[d] = new RegExp( + '^' + this.weekdaysMin(e, '').replace('.', '.?') + '$', + 'i' + ))), + this._weekdaysParse[d] || + ((f = + '^' + + this.weekdays(e, '') + + '|^' + + this.weekdaysShort(e, '') + + '|^' + + this.weekdaysMin(e, '')), + (this._weekdaysParse[d] = new RegExp( + f.replace('.', ''), + 'i' + ))), + c && 'dddd' === b && this._fullWeekdaysParse[d].test(a)) + ) + return d + if (c && 'ddd' === b && this._shortWeekdaysParse[d].test(a)) + return d + if (c && 'dd' === b && this._minWeekdaysParse[d].test(a)) return d + if (!c && this._weekdaysParse[d].test(a)) return d + } + } + function Ka(a) { + if (!this.isValid()) return null != a ? this : NaN + var b = this._isUTC ? this._d.getUTCDay() : this._d.getDay() + return null != a + ? ((a = Da(a, this.localeData())), this.add(a - b, 'd')) + : b + } + function La(a) { + if (!this.isValid()) return null != a ? this : NaN + var b = (this.day() + 7 - this.localeData()._week.dow) % 7 + return null == a ? b : this.add(a - b, 'd') + } + function Ma(a) { + if (!this.isValid()) return null != a ? this : NaN + if (null != a) { + var b = Ea(a, this.localeData()) + return this.day(this.day() % 7 ? b : b - 7) + } + return this.day() || 7 + } + function Na(a) { + return this._weekdaysParseExact + ? (j(this, '_weekdaysRegex') || Qa.call(this), + a ? this._weekdaysStrictRegex : this._weekdaysRegex) + : (j(this, '_weekdaysRegex') || (this._weekdaysRegex = ye), + this._weekdaysStrictRegex && a + ? this._weekdaysStrictRegex + : this._weekdaysRegex) + } + function Oa(a) { + return this._weekdaysParseExact + ? (j(this, '_weekdaysRegex') || Qa.call(this), + a ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) + : (j(this, '_weekdaysShortRegex') || + (this._weekdaysShortRegex = ze), + this._weekdaysShortStrictRegex && a + ? this._weekdaysShortStrictRegex + : this._weekdaysShortRegex) + } + function Pa(a) { + return this._weekdaysParseExact + ? (j(this, '_weekdaysRegex') || Qa.call(this), + a ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) + : (j(this, '_weekdaysMinRegex') || (this._weekdaysMinRegex = Ae), + this._weekdaysMinStrictRegex && a + ? this._weekdaysMinStrictRegex + : this._weekdaysMinRegex) + } + function Qa() { + function a(a, b) { + return b.length - a.length + } + var b, + c, + d, + e, + f, + g = [], + h = [], + i = [], + j = [] + for (b = 0; b < 7; b++) + (c = l([2e3, 1]).day(b)), + (d = this.weekdaysMin(c, '')), + (e = this.weekdaysShort(c, '')), + (f = this.weekdays(c, '')), + g.push(d), + h.push(e), + i.push(f), + j.push(d), + j.push(e), + j.push(f) + for (g.sort(a), h.sort(a), i.sort(a), j.sort(a), b = 0; b < 7; b++) + (h[b] = aa(h[b])), (i[b] = aa(i[b])), (j[b] = aa(j[b])) + ;(this._weekdaysRegex = new RegExp('^(' + j.join('|') + ')', 'i')), + (this._weekdaysShortRegex = this._weekdaysRegex), + (this._weekdaysMinRegex = this._weekdaysRegex), + (this._weekdaysStrictRegex = new RegExp( + '^(' + i.join('|') + ')', + 'i' + )), + (this._weekdaysShortStrictRegex = new RegExp( + '^(' + h.join('|') + ')', + 'i' + )), + (this._weekdaysMinStrictRegex = new RegExp( + '^(' + g.join('|') + ')', + 'i' + )) + } + function Ra() { + return this.hours() % 12 || 12 + } + function Sa() { + return this.hours() || 24 + } + function Ta(a, b) { + U(a, 0, 0, function () { + return this.localeData().meridiem(this.hours(), this.minutes(), b) + }) + } + function Ua(a, b) { + return b._meridiemParse + } + function Va(a) { + return 'p' === (a + '').toLowerCase().charAt(0) + } + function Wa(a, b, c) { + return a > 11 ? (c ? 'pm' : 'PM') : c ? 'am' : 'AM' + } + function Xa(a) { + return a ? a.toLowerCase().replace('_', '-') : a + } + function Ya(a) { + for (var b, c, d, e, f = 0; f < a.length; ) { + for ( + e = Xa(a[f]).split('-'), + b = e.length, + c = Xa(a[f + 1]), + c = c ? c.split('-') : null; + b > 0; + + ) { + if ((d = Za(e.slice(0, b).join('-')))) return d + if (c && c.length >= b && v(e, c, !0) >= b - 1) break + b-- + } + f++ + } + return null + } + function Za(a) { + var b = null + if (!Fe[a] && 'undefined' != typeof module && module && module.exports) + try { + ;(b = Be._abbr), require('./locale/' + a), $a(b) + } catch (a) {} + return Fe[a] + } + function $a(a, b) { + var c + return a && ((c = f(b) ? bb(a) : _a(a, b)), c && (Be = c)), Be._abbr + } + function _a(a, b) { + if (null !== b) { + var c = Ee + if (((b.abbr = a), null != Fe[a])) + y( + 'defineLocaleOverride', + 'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' + ), + (c = Fe[a]._config) + else if (null != b.parentLocale) { + if (null == Fe[b.parentLocale]) + return ( + Ge[b.parentLocale] || (Ge[b.parentLocale] = []), + Ge[b.parentLocale].push({ name: a, config: b }), + null + ) + c = Fe[b.parentLocale]._config + } + return ( + (Fe[a] = new C(B(c, b))), + Ge[a] && + Ge[a].forEach(function (a) { + _a(a.name, a.config) + }), + $a(a), + Fe[a] + ) + } + return delete Fe[a], null + } + function ab(a, b) { + if (null != b) { + var c, + d = Ee + null != Fe[a] && (d = Fe[a]._config), + (b = B(d, b)), + (c = new C(b)), + (c.parentLocale = Fe[a]), + (Fe[a] = c), + $a(a) + } else null != Fe[a] && (null != Fe[a].parentLocale ? (Fe[a] = Fe[a].parentLocale) : null != Fe[a] && delete Fe[a]) + return Fe[a] + } + function bb(a) { + var b + if ((a && a._locale && a._locale._abbr && (a = a._locale._abbr), !a)) + return Be + if (!c(a)) { + if ((b = Za(a))) return b + a = [a] + } + return Ya(a) + } + function cb() { + return Ad(Fe) + } + function db(a) { + var b, + c = a._a + return ( + c && + n(a).overflow === -2 && + ((b = + c[fe] < 0 || c[fe] > 11 + ? fe + : c[ge] < 1 || c[ge] > ea(c[ee], c[fe]) + ? ge + : c[he] < 0 || + c[he] > 24 || + (24 === c[he] && + (0 !== c[ie] || 0 !== c[je] || 0 !== c[ke])) + ? he + : c[ie] < 0 || c[ie] > 59 + ? ie + : c[je] < 0 || c[je] > 59 + ? je + : c[ke] < 0 || c[ke] > 999 + ? ke + : -1), + n(a)._overflowDayOfYear && (b < ee || b > ge) && (b = ge), + n(a)._overflowWeeks && b === -1 && (b = le), + n(a)._overflowWeekday && b === -1 && (b = me), + (n(a).overflow = b)), + a + ) + } + function eb(a) { + var b, + c, + d, + e, + f, + g, + h = a._i, + i = He.exec(h) || Ie.exec(h) + if (i) { + for (n(a).iso = !0, b = 0, c = Ke.length; b < c; b++) + if (Ke[b][1].exec(i[1])) { + ;(e = Ke[b][0]), (d = Ke[b][2] !== !1) + break + } + if (null == e) return void (a._isValid = !1) + if (i[3]) { + for (b = 0, c = Le.length; b < c; b++) + if (Le[b][1].exec(i[3])) { + f = (i[2] || ' ') + Le[b][0] + break + } + if (null == f) return void (a._isValid = !1) + } + if (!d && null != f) return void (a._isValid = !1) + if (i[4]) { + if (!Je.exec(i[4])) return void (a._isValid = !1) + g = 'Z' + } + ;(a._f = e + (f || '') + (g || '')), lb(a) + } else a._isValid = !1 + } + function fb(a) { + var b, + c, + d, + e, + f, + g, + h, + i, + j = { + ' GMT': ' +0000', + ' EDT': ' -0400', + ' EST': ' -0500', + ' CDT': ' -0500', + ' CST': ' -0600', + ' MDT': ' -0600', + ' MST': ' -0700', + ' PDT': ' -0700', + ' PST': ' -0800', + }, + k = 'YXWVUTSRQPONZABCDEFGHIKLM' + if ( + ((b = a._i + .replace(/\([^\)]*\)|[\n\t]/g, ' ') + .replace(/(\s\s+)/g, ' ') + .replace(/^\s|\s$/g, '')), + (c = Ne.exec(b))) + ) { + if ( + ((d = c[1] ? 'ddd' + (5 === c[1].length ? ', ' : ' ') : ''), + (e = 'D MMM ' + (c[2].length > 10 ? 'YYYY ' : 'YY ')), + (f = 'HH:mm' + (c[4] ? ':ss' : '')), + c[1]) + ) { + var l = new Date(c[2]), + m = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][ + l.getDay() + ] + if (c[1].substr(0, 3) !== m) + return (n(a).weekdayMismatch = !0), void (a._isValid = !1) + } + switch (c[5].length) { + case 2: + 0 === i + ? (h = ' +0000') + : ((i = k.indexOf(c[5][1].toUpperCase()) - 12), + (h = + (i < 0 ? ' -' : ' +') + + ('' + i).replace(/^-?/, '0').match(/..$/)[0] + + '00')) + break + case 4: + h = j[c[5]] + break + default: + h = j[' GMT'] + } + ;(c[5] = h), + (a._i = c.splice(1).join('')), + (g = ' ZZ'), + (a._f = d + e + f + g), + lb(a), + (n(a).rfc2822 = !0) + } else a._isValid = !1 + } + function gb(b) { + var c = Me.exec(b._i) + return null !== c + ? void (b._d = new Date(+c[1])) + : (eb(b), + void ( + b._isValid === !1 && + (delete b._isValid, + fb(b), + b._isValid === !1 && + (delete b._isValid, a.createFromInputFallback(b))) + )) + } + function hb(a, b, c) { + return null != a ? a : null != b ? b : c + } + function ib(b) { + var c = new Date(a.now()) + return b._useUTC + ? [c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate()] + : [c.getFullYear(), c.getMonth(), c.getDate()] + } + function jb(a) { + var b, + c, + d, + e, + f = [] + if (!a._d) { + for ( + d = ib(a), + a._w && null == a._a[ge] && null == a._a[fe] && kb(a), + null != a._dayOfYear && + ((e = hb(a._a[ee], d[ee])), + (a._dayOfYear > pa(e) || 0 === a._dayOfYear) && + (n(a)._overflowDayOfYear = !0), + (c = ta(e, 0, a._dayOfYear)), + (a._a[fe] = c.getUTCMonth()), + (a._a[ge] = c.getUTCDate())), + b = 0; + b < 3 && null == a._a[b]; + ++b + ) + a._a[b] = f[b] = d[b] + for (; b < 7; b++) + a._a[b] = f[b] = null == a._a[b] ? (2 === b ? 1 : 0) : a._a[b] + 24 === a._a[he] && + 0 === a._a[ie] && + 0 === a._a[je] && + 0 === a._a[ke] && + ((a._nextDay = !0), (a._a[he] = 0)), + (a._d = (a._useUTC ? ta : sa).apply(null, f)), + null != a._tzm && + a._d.setUTCMinutes(a._d.getUTCMinutes() - a._tzm), + a._nextDay && (a._a[he] = 24) + } + } + function kb(a) { + var b, c, d, e, f, g, h, i + if (((b = a._w), null != b.GG || null != b.W || null != b.E)) + (f = 1), + (g = 4), + (c = hb(b.GG, a._a[ee], wa(tb(), 1, 4).year)), + (d = hb(b.W, 1)), + (e = hb(b.E, 1)), + (e < 1 || e > 7) && (i = !0) + else { + ;(f = a._locale._week.dow), (g = a._locale._week.doy) + var j = wa(tb(), f, g) + ;(c = hb(b.gg, a._a[ee], j.year)), + (d = hb(b.w, j.week)), + null != b.d + ? ((e = b.d), (e < 0 || e > 6) && (i = !0)) + : null != b.e + ? ((e = b.e + f), (b.e < 0 || b.e > 6) && (i = !0)) + : (e = f) + } + d < 1 || d > xa(c, f, g) + ? (n(a)._overflowWeeks = !0) + : null != i + ? (n(a)._overflowWeekday = !0) + : ((h = va(c, d, e, f, g)), + (a._a[ee] = h.year), + (a._dayOfYear = h.dayOfYear)) + } + function lb(b) { + if (b._f === a.ISO_8601) return void eb(b) + if (b._f === a.RFC_2822) return void fb(b) + ;(b._a = []), (n(b).empty = !0) + var c, + d, + e, + f, + g, + h = '' + b._i, + i = h.length, + j = 0 + for (e = Y(b._f, b._locale).match(Jd) || [], c = 0; c < e.length; c++) + (f = e[c]), + (d = (h.match($(f, b)) || [])[0]), + d && + ((g = h.substr(0, h.indexOf(d))), + g.length > 0 && n(b).unusedInput.push(g), + (h = h.slice(h.indexOf(d) + d.length)), + (j += d.length)), + Md[f] + ? (d ? (n(b).empty = !1) : n(b).unusedTokens.push(f), + da(f, d, b)) + : b._strict && !d && n(b).unusedTokens.push(f) + ;(n(b).charsLeftOver = i - j), + h.length > 0 && n(b).unusedInput.push(h), + b._a[he] <= 12 && + n(b).bigHour === !0 && + b._a[he] > 0 && + (n(b).bigHour = void 0), + (n(b).parsedDateParts = b._a.slice(0)), + (n(b).meridiem = b._meridiem), + (b._a[he] = mb(b._locale, b._a[he], b._meridiem)), + jb(b), + db(b) + } + function mb(a, b, c) { + var d + return null == c + ? b + : null != a.meridiemHour + ? a.meridiemHour(b, c) + : null != a.isPM + ? ((d = a.isPM(c)), + d && b < 12 && (b += 12), + d || 12 !== b || (b = 0), + b) + : b + } + function nb(a) { + var b, c, d, e, f + if (0 === a._f.length) + return (n(a).invalidFormat = !0), void (a._d = new Date(NaN)) + for (e = 0; e < a._f.length; e++) + (f = 0), + (b = q({}, a)), + null != a._useUTC && (b._useUTC = a._useUTC), + (b._f = a._f[e]), + lb(b), + o(b) && + ((f += n(b).charsLeftOver), + (f += 10 * n(b).unusedTokens.length), + (n(b).score = f), + (null == d || f < d) && ((d = f), (c = b))) + k(a, c || b) + } + function ob(a) { + if (!a._d) { + var b = L(a._i) + ;(a._a = i( + [ + b.year, + b.month, + b.day || b.date, + b.hour, + b.minute, + b.second, + b.millisecond, + ], + function (a) { + return a && parseInt(a, 10) + } + )), + jb(a) + } + } + function pb(a) { + var b = new r(db(qb(a))) + return b._nextDay && (b.add(1, 'd'), (b._nextDay = void 0)), b + } + function qb(a) { + var b = a._i, + d = a._f + return ( + (a._locale = a._locale || bb(a._l)), + null === b || (void 0 === d && '' === b) + ? p({ nullInput: !0 }) + : ('string' == typeof b && (a._i = b = a._locale.preparse(b)), + s(b) + ? new r(db(b)) + : (h(b) ? (a._d = b) : c(d) ? nb(a) : d ? lb(a) : rb(a), + o(a) || (a._d = null), + a)) + ) + } + function rb(b) { + var e = b._i + f(e) + ? (b._d = new Date(a.now())) + : h(e) + ? (b._d = new Date(e.valueOf())) + : 'string' == typeof e + ? gb(b) + : c(e) + ? ((b._a = i(e.slice(0), function (a) { + return parseInt(a, 10) + })), + jb(b)) + : d(e) + ? ob(b) + : g(e) + ? (b._d = new Date(e)) + : a.createFromInputFallback(b) + } + function sb(a, b, f, g, h) { + var i = {} + return ( + (f !== !0 && f !== !1) || ((g = f), (f = void 0)), + ((d(a) && e(a)) || (c(a) && 0 === a.length)) && (a = void 0), + (i._isAMomentObject = !0), + (i._useUTC = i._isUTC = h), + (i._l = f), + (i._i = a), + (i._f = b), + (i._strict = g), + pb(i) + ) + } + function tb(a, b, c, d) { + return sb(a, b, c, d, !1) + } + function ub(a, b) { + var d, e + if ((1 === b.length && c(b[0]) && (b = b[0]), !b.length)) return tb() + for (d = b[0], e = 1; e < b.length; ++e) + (b[e].isValid() && !b[e][a](d)) || (d = b[e]) + return d + } + function vb() { + var a = [].slice.call(arguments, 0) + return ub('isBefore', a) + } + function wb() { + var a = [].slice.call(arguments, 0) + return ub('isAfter', a) + } + function xb(a) { + for (var b in a) + if (Re.indexOf(b) === -1 || (null != a[b] && isNaN(a[b]))) return !1 + for (var c = !1, d = 0; d < Re.length; ++d) + if (a[Re[d]]) { + if (c) return !1 + parseFloat(a[Re[d]]) !== u(a[Re[d]]) && (c = !0) + } + return !0 + } + function yb() { + return this._isValid + } + function zb() { + return Sb(NaN) + } + function Ab(a) { + var b = L(a), + c = b.year || 0, + d = b.quarter || 0, + e = b.month || 0, + f = b.week || 0, + g = b.day || 0, + h = b.hour || 0, + i = b.minute || 0, + j = b.second || 0, + k = b.millisecond || 0 + ;(this._isValid = xb(b)), + (this._milliseconds = +k + 1e3 * j + 6e4 * i + 1e3 * h * 60 * 60), + (this._days = +g + 7 * f), + (this._months = +e + 3 * d + 12 * c), + (this._data = {}), + (this._locale = bb()), + this._bubble() + } + function Bb(a) { + return a instanceof Ab + } + function Cb(a) { + return a < 0 ? Math.round(-1 * a) * -1 : Math.round(a) + } + function Db(a, b) { + U(a, 0, 0, function () { + var a = this.utcOffset(), + c = '+' + return ( + a < 0 && ((a = -a), (c = '-')), + c + T(~~(a / 60), 2) + b + T(~~a % 60, 2) + ) + }) + } + function Eb(a, b) { + var c = (b || '').match(a) + if (null === c) return null + var d = c[c.length - 1] || [], + e = (d + '').match(Se) || ['-', 0, 0], + f = +(60 * e[1]) + u(e[2]) + return 0 === f ? 0 : '+' === e[0] ? f : -f + } + function Fb(b, c) { + var d, e + return c._isUTC + ? ((d = c.clone()), + (e = + (s(b) || h(b) ? b.valueOf() : tb(b).valueOf()) - + d.valueOf()), + d._d.setTime(d._d.valueOf() + e), + a.updateOffset(d, !1), + d) + : tb(b).local() + } + function Gb(a) { + return 15 * -Math.round(a._d.getTimezoneOffset() / 15) + } + function Hb(b, c, d) { + var e, + f = this._offset || 0 + if (!this.isValid()) return null != b ? this : NaN + if (null != b) { + if ('string' == typeof b) { + if (((b = Eb(_d, b)), null === b)) return this + } else Math.abs(b) < 16 && !d && (b = 60 * b) + return ( + !this._isUTC && c && (e = Gb(this)), + (this._offset = b), + (this._isUTC = !0), + null != e && this.add(e, 'm'), + f !== b && + (!c || this._changeInProgress + ? Xb(this, Sb(b - f, 'm'), 1, !1) + : this._changeInProgress || + ((this._changeInProgress = !0), + a.updateOffset(this, !0), + (this._changeInProgress = null))), + this + ) + } + return this._isUTC ? f : Gb(this) + } + function Ib(a, b) { + return null != a + ? ('string' != typeof a && (a = -a), this.utcOffset(a, b), this) + : -this.utcOffset() + } + function Jb(a) { + return this.utcOffset(0, a) + } + function Kb(a) { + return ( + this._isUTC && + (this.utcOffset(0, a), + (this._isUTC = !1), + a && this.subtract(Gb(this), 'm')), + this + ) + } + function Lb() { + if (null != this._tzm) this.utcOffset(this._tzm, !1, !0) + else if ('string' == typeof this._i) { + var a = Eb($d, this._i) + null != a ? this.utcOffset(a) : this.utcOffset(0, !0) + } + return this + } + function Mb(a) { + return ( + !!this.isValid() && + ((a = a ? tb(a).utcOffset() : 0), (this.utcOffset() - a) % 60 === 0) + ) + } + function Nb() { + return ( + this.utcOffset() > this.clone().month(0).utcOffset() || + this.utcOffset() > this.clone().month(5).utcOffset() + ) + } + function Ob() { + if (!f(this._isDSTShifted)) return this._isDSTShifted + var a = {} + if ((q(a, this), (a = qb(a)), a._a)) { + var b = a._isUTC ? l(a._a) : tb(a._a) + this._isDSTShifted = this.isValid() && v(a._a, b.toArray()) > 0 + } else this._isDSTShifted = !1 + return this._isDSTShifted + } + function Pb() { + return !!this.isValid() && !this._isUTC + } + function Qb() { + return !!this.isValid() && this._isUTC + } + function Rb() { + return !!this.isValid() && this._isUTC && 0 === this._offset + } + function Sb(a, b) { + var c, + d, + e, + f = a, + h = null + return ( + Bb(a) + ? (f = { ms: a._milliseconds, d: a._days, M: a._months }) + : g(a) + ? ((f = {}), b ? (f[b] = a) : (f.milliseconds = a)) + : (h = Te.exec(a)) + ? ((c = '-' === h[1] ? -1 : 1), + (f = { + y: 0, + d: u(h[ge]) * c, + h: u(h[he]) * c, + m: u(h[ie]) * c, + s: u(h[je]) * c, + ms: u(Cb(1e3 * h[ke])) * c, + })) + : (h = Ue.exec(a)) + ? ((c = '-' === h[1] ? -1 : 1), + (f = { + y: Tb(h[2], c), + M: Tb(h[3], c), + w: Tb(h[4], c), + d: Tb(h[5], c), + h: Tb(h[6], c), + m: Tb(h[7], c), + s: Tb(h[8], c), + })) + : null == f + ? (f = {}) + : 'object' == typeof f && + ('from' in f || 'to' in f) && + ((e = Vb(tb(f.from), tb(f.to))), + (f = {}), + (f.ms = e.milliseconds), + (f.M = e.months)), + (d = new Ab(f)), + Bb(a) && j(a, '_locale') && (d._locale = a._locale), + d + ) + } + function Tb(a, b) { + var c = a && parseFloat(a.replace(',', '.')) + return (isNaN(c) ? 0 : c) * b + } + function Ub(a, b) { + var c = { milliseconds: 0, months: 0 } + return ( + (c.months = b.month() - a.month() + 12 * (b.year() - a.year())), + a.clone().add(c.months, 'M').isAfter(b) && --c.months, + (c.milliseconds = +b - +a.clone().add(c.months, 'M')), + c + ) + } + function Vb(a, b) { + var c + return a.isValid() && b.isValid() + ? ((b = Fb(b, a)), + a.isBefore(b) + ? (c = Ub(a, b)) + : ((c = Ub(b, a)), + (c.milliseconds = -c.milliseconds), + (c.months = -c.months)), + c) + : { milliseconds: 0, months: 0 } + } + function Wb(a, b) { + return function (c, d) { + var e, f + return ( + null === d || + isNaN(+d) || + (y( + b, + 'moment().' + + b + + '(period, number) is deprecated. Please use moment().' + + b + + '(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' + ), + (f = c), + (c = d), + (d = f)), + (c = 'string' == typeof c ? +c : c), + (e = Sb(c, d)), + Xb(this, e, a), + this + ) + } + } + function Xb(b, c, d, e) { + var f = c._milliseconds, + g = Cb(c._days), + h = Cb(c._months) + b.isValid() && + ((e = null == e || e), + f && b._d.setTime(b._d.valueOf() + f * d), + g && Q(b, 'Date', P(b, 'Date') + g * d), + h && ja(b, P(b, 'Month') + h * d), + e && a.updateOffset(b, g || h)) + } + function Yb(a, b) { + var c = a.diff(b, 'days', !0) + return c < -6 + ? 'sameElse' + : c < -1 + ? 'lastWeek' + : c < 0 + ? 'lastDay' + : c < 1 + ? 'sameDay' + : c < 2 + ? 'nextDay' + : c < 7 + ? 'nextWeek' + : 'sameElse' + } + function Zb(b, c) { + var d = b || tb(), + e = Fb(d, this).startOf('day'), + f = a.calendarFormat(this, e) || 'sameElse', + g = c && (z(c[f]) ? c[f].call(this, d) : c[f]) + return this.format(g || this.localeData().calendar(f, this, tb(d))) + } + function $b() { + return new r(this) + } + function _b(a, b) { + var c = s(a) ? a : tb(a) + return ( + !(!this.isValid() || !c.isValid()) && + ((b = K(f(b) ? 'millisecond' : b)), + 'millisecond' === b + ? this.valueOf() > c.valueOf() + : c.valueOf() < this.clone().startOf(b).valueOf()) + ) + } + function ac(a, b) { + var c = s(a) ? a : tb(a) + return ( + !(!this.isValid() || !c.isValid()) && + ((b = K(f(b) ? 'millisecond' : b)), + 'millisecond' === b + ? this.valueOf() < c.valueOf() + : this.clone().endOf(b).valueOf() < c.valueOf()) + ) + } + function bc(a, b, c, d) { + return ( + (d = d || '()'), + ('(' === d[0] ? this.isAfter(a, c) : !this.isBefore(a, c)) && + (')' === d[1] ? this.isBefore(b, c) : !this.isAfter(b, c)) + ) + } + function cc(a, b) { + var c, + d = s(a) ? a : tb(a) + return ( + !(!this.isValid() || !d.isValid()) && + ((b = K(b || 'millisecond')), + 'millisecond' === b + ? this.valueOf() === d.valueOf() + : ((c = d.valueOf()), + this.clone().startOf(b).valueOf() <= c && + c <= this.clone().endOf(b).valueOf())) + ) + } + function dc(a, b) { + return this.isSame(a, b) || this.isAfter(a, b) + } + function ec(a, b) { + return this.isSame(a, b) || this.isBefore(a, b) + } + function fc(a, b, c) { + var d, e, f, g + return this.isValid() + ? ((d = Fb(a, this)), + d.isValid() + ? ((e = 6e4 * (d.utcOffset() - this.utcOffset())), + (b = K(b)), + 'year' === b || 'month' === b || 'quarter' === b + ? ((g = gc(this, d)), + 'quarter' === b + ? (g /= 3) + : 'year' === b && (g /= 12)) + : ((f = this - d), + (g = + 'second' === b + ? f / 1e3 + : 'minute' === b + ? f / 6e4 + : 'hour' === b + ? f / 36e5 + : 'day' === b + ? (f - e) / 864e5 + : 'week' === b + ? (f - e) / 6048e5 + : f)), + c ? g : t(g)) + : NaN) + : NaN + } + function gc(a, b) { + var c, + d, + e = 12 * (b.year() - a.year()) + (b.month() - a.month()), + f = a.clone().add(e, 'months') + return ( + b - f < 0 + ? ((c = a.clone().add(e - 1, 'months')), + (d = (b - f) / (f - c))) + : ((c = a.clone().add(e + 1, 'months')), + (d = (b - f) / (c - f))), + -(e + d) || 0 + ) + } + function hc() { + return this.clone() + .locale('en') + .format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ') + } + function ic() { + if (!this.isValid()) return null + var a = this.clone().utc() + return a.year() < 0 || a.year() > 9999 + ? X(a, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]') + : z(Date.prototype.toISOString) + ? this.toDate().toISOString() + : X(a, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]') + } + function jc() { + if (!this.isValid()) return 'moment.invalid(/* ' + this._i + ' */)' + var a = 'moment', + b = '' + this.isLocal() || + ((a = 0 === this.utcOffset() ? 'moment.utc' : 'moment.parseZone'), + (b = 'Z')) + var c = '[' + a + '("]', + d = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY', + e = '-MM-DD[T]HH:mm:ss.SSS', + f = b + '[")]' + return this.format(c + d + e + f) + } + function kc(b) { + b || (b = this.isUtc() ? a.defaultFormatUtc : a.defaultFormat) + var c = X(this, b) + return this.localeData().postformat(c) + } + function lc(a, b) { + return this.isValid() && ((s(a) && a.isValid()) || tb(a).isValid()) + ? Sb({ to: this, from: a }).locale(this.locale()).humanize(!b) + : this.localeData().invalidDate() + } + function mc(a) { + return this.from(tb(), a) + } + function nc(a, b) { + return this.isValid() && ((s(a) && a.isValid()) || tb(a).isValid()) + ? Sb({ from: this, to: a }).locale(this.locale()).humanize(!b) + : this.localeData().invalidDate() + } + function oc(a) { + return this.to(tb(), a) + } + function pc(a) { + var b + return void 0 === a + ? this._locale._abbr + : ((b = bb(a)), null != b && (this._locale = b), this) + } + function qc() { + return this._locale + } + function rc(a) { + switch ((a = K(a))) { + case 'year': + this.month(0) + case 'quarter': + case 'month': + this.date(1) + case 'week': + case 'isoWeek': + case 'day': + case 'date': + this.hours(0) + case 'hour': + this.minutes(0) + case 'minute': + this.seconds(0) + case 'second': + this.milliseconds(0) + } + return ( + 'week' === a && this.weekday(0), + 'isoWeek' === a && this.isoWeekday(1), + 'quarter' === a && this.month(3 * Math.floor(this.month() / 3)), + this + ) + } + function sc(a) { + return ( + (a = K(a)), + void 0 === a || 'millisecond' === a + ? this + : ('date' === a && (a = 'day'), + this.startOf(a) + .add(1, 'isoWeek' === a ? 'week' : a) + .subtract(1, 'ms')) + ) + } + function tc() { + return this._d.valueOf() - 6e4 * (this._offset || 0) + } + function uc() { + return Math.floor(this.valueOf() / 1e3) + } + function vc() { + return new Date(this.valueOf()) + } + function wc() { + var a = this + return [ + a.year(), + a.month(), + a.date(), + a.hour(), + a.minute(), + a.second(), + a.millisecond(), + ] + } + function xc() { + var a = this + return { + years: a.year(), + months: a.month(), + date: a.date(), + hours: a.hours(), + minutes: a.minutes(), + seconds: a.seconds(), + milliseconds: a.milliseconds(), + } + } + function yc() { + return this.isValid() ? this.toISOString() : null + } + function zc() { + return o(this) + } + function Ac() { + return k({}, n(this)) + } + function Bc() { + return n(this).overflow + } + function Cc() { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict, + } + } + function Dc(a, b) { + U(0, [a, a.length], 0, b) + } + function Ec(a) { + return Ic.call( + this, + a, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy + ) + } + function Fc(a) { + return Ic.call(this, a, this.isoWeek(), this.isoWeekday(), 1, 4) + } + function Gc() { + return xa(this.year(), 1, 4) + } + function Hc() { + var a = this.localeData()._week + return xa(this.year(), a.dow, a.doy) + } + function Ic(a, b, c, d, e) { + var f + return null == a + ? wa(this, d, e).year + : ((f = xa(a, d, e)), + b > f && (b = f), + Jc.call(this, a, b, c, d, e)) + } + function Jc(a, b, c, d, e) { + var f = va(a, b, c, d, e), + g = ta(f.year, 0, f.dayOfYear) + return ( + this.year(g.getUTCFullYear()), + this.month(g.getUTCMonth()), + this.date(g.getUTCDate()), + this + ) + } + function Kc(a) { + return null == a + ? Math.ceil((this.month() + 1) / 3) + : this.month(3 * (a - 1) + (this.month() % 3)) + } + function Lc(a) { + var b = + Math.round( + (this.clone().startOf('day') - this.clone().startOf('year')) / + 864e5 + ) + 1 + return null == a ? b : this.add(a - b, 'd') + } + function Mc(a, b) { + b[ke] = u(1e3 * ('0.' + a)) + } + function Nc() { + return this._isUTC ? 'UTC' : '' + } + function Oc() { + return this._isUTC ? 'Coordinated Universal Time' : '' + } + function Pc(a) { + return tb(1e3 * a) + } + function Qc() { + return tb.apply(null, arguments).parseZone() + } + function Rc(a) { + return a + } + function Sc(a, b, c, d) { + var e = bb(), + f = l().set(d, b) + return e[c](f, a) + } + function Tc(a, b, c) { + if ((g(a) && ((b = a), (a = void 0)), (a = a || ''), null != b)) + return Sc(a, b, c, 'month') + var d, + e = [] + for (d = 0; d < 12; d++) e[d] = Sc(a, d, c, 'month') + return e + } + function Uc(a, b, c, d) { + 'boolean' == typeof a + ? (g(b) && ((c = b), (b = void 0)), (b = b || '')) + : ((b = a), + (c = b), + (a = !1), + g(b) && ((c = b), (b = void 0)), + (b = b || '')) + var e = bb(), + f = a ? e._week.dow : 0 + if (null != c) return Sc(b, (c + f) % 7, d, 'day') + var h, + i = [] + for (h = 0; h < 7; h++) i[h] = Sc(b, (h + f) % 7, d, 'day') + return i + } + function Vc(a, b) { + return Tc(a, b, 'months') + } + function Wc(a, b) { + return Tc(a, b, 'monthsShort') + } + function Xc(a, b, c) { + return Uc(a, b, c, 'weekdays') + } + function Yc(a, b, c) { + return Uc(a, b, c, 'weekdaysShort') + } + function Zc(a, b, c) { + return Uc(a, b, c, 'weekdaysMin') + } + function $c() { + var a = this._data + return ( + (this._milliseconds = df(this._milliseconds)), + (this._days = df(this._days)), + (this._months = df(this._months)), + (a.milliseconds = df(a.milliseconds)), + (a.seconds = df(a.seconds)), + (a.minutes = df(a.minutes)), + (a.hours = df(a.hours)), + (a.months = df(a.months)), + (a.years = df(a.years)), + this + ) + } + function _c(a, b, c, d) { + var e = Sb(b, c) + return ( + (a._milliseconds += d * e._milliseconds), + (a._days += d * e._days), + (a._months += d * e._months), + a._bubble() + ) + } + function ad(a, b) { + return _c(this, a, b, 1) + } + function bd(a, b) { + return _c(this, a, b, -1) + } + function cd(a) { + return a < 0 ? Math.floor(a) : Math.ceil(a) + } + function dd() { + var a, + b, + c, + d, + e, + f = this._milliseconds, + g = this._days, + h = this._months, + i = this._data + return ( + (f >= 0 && g >= 0 && h >= 0) || + (f <= 0 && g <= 0 && h <= 0) || + ((f += 864e5 * cd(fd(h) + g)), (g = 0), (h = 0)), + (i.milliseconds = f % 1e3), + (a = t(f / 1e3)), + (i.seconds = a % 60), + (b = t(a / 60)), + (i.minutes = b % 60), + (c = t(b / 60)), + (i.hours = c % 24), + (g += t(c / 24)), + (e = t(ed(g))), + (h += e), + (g -= cd(fd(e))), + (d = t(h / 12)), + (h %= 12), + (i.days = g), + (i.months = h), + (i.years = d), + this + ) + } + function ed(a) { + return (4800 * a) / 146097 + } + function fd(a) { + return (146097 * a) / 4800 + } + function gd(a) { + if (!this.isValid()) return NaN + var b, + c, + d = this._milliseconds + if (((a = K(a)), 'month' === a || 'year' === a)) + return ( + (b = this._days + d / 864e5), + (c = this._months + ed(b)), + 'month' === a ? c : c / 12 + ) + switch (((b = this._days + Math.round(fd(this._months))), a)) { + case 'week': + return b / 7 + d / 6048e5 + case 'day': + return b + d / 864e5 + case 'hour': + return 24 * b + d / 36e5 + case 'minute': + return 1440 * b + d / 6e4 + case 'second': + return 86400 * b + d / 1e3 + case 'millisecond': + return Math.floor(864e5 * b) + d + default: + throw new Error('Unknown unit ' + a) + } + } + function hd() { + return this.isValid() + ? this._milliseconds + + 864e5 * this._days + + (this._months % 12) * 2592e6 + + 31536e6 * u(this._months / 12) + : NaN + } + function id(a) { + return function () { + return this.as(a) + } + } + function jd(a) { + return (a = K(a)), this.isValid() ? this[a + 's']() : NaN + } + function kd(a) { + return function () { + return this.isValid() ? this._data[a] : NaN + } + } + function ld() { + return t(this.days() / 7) + } + function md(a, b, c, d, e) { + return e.relativeTime(b || 1, !!c, a, d) + } + function nd(a, b, c) { + var d = Sb(a).abs(), + e = uf(d.as('s')), + f = uf(d.as('m')), + g = uf(d.as('h')), + h = uf(d.as('d')), + i = uf(d.as('M')), + j = uf(d.as('y')), + k = (e <= vf.ss && ['s', e]) || + (e < vf.s && ['ss', e]) || + (f <= 1 && ['m']) || + (f < vf.m && ['mm', f]) || + (g <= 1 && ['h']) || + (g < vf.h && ['hh', g]) || + (h <= 1 && ['d']) || + (h < vf.d && ['dd', h]) || + (i <= 1 && ['M']) || + (i < vf.M && ['MM', i]) || + (j <= 1 && ['y']) || ['yy', j] + return (k[2] = b), (k[3] = +a > 0), (k[4] = c), md.apply(null, k) + } + function od(a) { + return void 0 === a ? uf : 'function' == typeof a && ((uf = a), !0) + } + function pd(a, b) { + return ( + void 0 !== vf[a] && + (void 0 === b + ? vf[a] + : ((vf[a] = b), 's' === a && (vf.ss = b - 1), !0)) + ) + } + function qd(a) { + if (!this.isValid()) return this.localeData().invalidDate() + var b = this.localeData(), + c = nd(this, !a, b) + return a && (c = b.pastFuture(+this, c)), b.postformat(c) + } + function rd() { + if (!this.isValid()) return this.localeData().invalidDate() + var a, + b, + c, + d = wf(this._milliseconds) / 1e3, + e = wf(this._days), + f = wf(this._months) + ;(a = t(d / 60)), + (b = t(a / 60)), + (d %= 60), + (a %= 60), + (c = t(f / 12)), + (f %= 12) + var g = c, + h = f, + i = e, + j = b, + k = a, + l = d, + m = this.asSeconds() + return m + ? (m < 0 ? '-' : '') + + 'P' + + (g ? g + 'Y' : '') + + (h ? h + 'M' : '') + + (i ? i + 'D' : '') + + (j || k || l ? 'T' : '') + + (j ? j + 'H' : '') + + (k ? k + 'M' : '') + + (l ? l + 'S' : '') + : 'P0D' + } + var sd, td + td = Array.prototype.some + ? Array.prototype.some + : function (a) { + for ( + var b = Object(this), c = b.length >>> 0, d = 0; + d < c; + d++ + ) + if (d in b && a.call(this, b[d], d, b)) return !0 + return !1 + } + var ud = td, + vd = (a.momentProperties = []), + wd = !1, + xd = {} + ;(a.suppressDeprecationWarnings = !1), (a.deprecationHandler = null) + var yd + yd = Object.keys + ? Object.keys + : function (a) { + var b, + c = [] + for (b in a) j(a, b) && c.push(b) + return c + } + var zd, + Ad = yd, + Bd = { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + Cd = { + LTS: 'h:mm:ss A', + LT: 'h:mm A', + L: 'MM/DD/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + Dd = 'Invalid date', + Ed = '%d', + Fd = /\d{1,2}/, + Gd = { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + Hd = {}, + Id = {}, + Jd = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, + Kd = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, + Ld = {}, + Md = {}, + Nd = /\d/, + Od = /\d\d/, + Pd = /\d{3}/, + Qd = /\d{4}/, + Rd = /[+-]?\d{6}/, + Sd = /\d\d?/, + Td = /\d\d\d\d?/, + Ud = /\d\d\d\d\d\d?/, + Vd = /\d{1,3}/, + Wd = /\d{1,4}/, + Xd = /[+-]?\d{1,6}/, + Yd = /\d+/, + Zd = /[+-]?\d+/, + $d = /Z|[+-]\d\d:?\d\d/gi, + _d = /Z|[+-]\d\d(?::?\d\d)?/gi, + ae = /[+-]?\d+(\.\d{1,3})?/, + be = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, + ce = {}, + de = {}, + ee = 0, + fe = 1, + ge = 2, + he = 3, + ie = 4, + je = 5, + ke = 6, + le = 7, + me = 8 + zd = Array.prototype.indexOf + ? Array.prototype.indexOf + : function (a) { + var b + for (b = 0; b < this.length; ++b) if (this[b] === a) return b + return -1 + } + var ne = zd + U('M', ['MM', 2], 'Mo', function () { + return this.month() + 1 + }), + U('MMM', 0, 0, function (a) { + return this.localeData().monthsShort(this, a) + }), + U('MMMM', 0, 0, function (a) { + return this.localeData().months(this, a) + }), + J('month', 'M'), + M('month', 8), + Z('M', Sd), + Z('MM', Sd, Od), + Z('MMM', function (a, b) { + return b.monthsShortRegex(a) + }), + Z('MMMM', function (a, b) { + return b.monthsRegex(a) + }), + ba(['M', 'MM'], function (a, b) { + b[fe] = u(a) - 1 + }), + ba(['MMM', 'MMMM'], function (a, b, c, d) { + var e = c._locale.monthsParse(a, d, c._strict) + null != e ? (b[fe] = e) : (n(c).invalidMonth = a) + }) + var oe = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, + pe = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + qe = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + re = be, + se = be + U('Y', 0, 0, function () { + var a = this.year() + return a <= 9999 ? '' + a : '+' + a + }), + U(0, ['YY', 2], 0, function () { + return this.year() % 100 + }), + U(0, ['YYYY', 4], 0, 'year'), + U(0, ['YYYYY', 5], 0, 'year'), + U(0, ['YYYYYY', 6, !0], 0, 'year'), + J('year', 'y'), + M('year', 1), + Z('Y', Zd), + Z('YY', Sd, Od), + Z('YYYY', Wd, Qd), + Z('YYYYY', Xd, Rd), + Z('YYYYYY', Xd, Rd), + ba(['YYYYY', 'YYYYYY'], ee), + ba('YYYY', function (b, c) { + c[ee] = 2 === b.length ? a.parseTwoDigitYear(b) : u(b) + }), + ba('YY', function (b, c) { + c[ee] = a.parseTwoDigitYear(b) + }), + ba('Y', function (a, b) { + b[ee] = parseInt(a, 10) + }), + (a.parseTwoDigitYear = function (a) { + return u(a) + (u(a) > 68 ? 1900 : 2e3) + }) + var te = O('FullYear', !0) + U('w', ['ww', 2], 'wo', 'week'), + U('W', ['WW', 2], 'Wo', 'isoWeek'), + J('week', 'w'), + J('isoWeek', 'W'), + M('week', 5), + M('isoWeek', 5), + Z('w', Sd), + Z('ww', Sd, Od), + Z('W', Sd), + Z('WW', Sd, Od), + ca(['w', 'ww', 'W', 'WW'], function (a, b, c, d) { + b[d.substr(0, 1)] = u(a) + }) + var ue = { dow: 0, doy: 6 } + U('d', 0, 'do', 'day'), + U('dd', 0, 0, function (a) { + return this.localeData().weekdaysMin(this, a) + }), + U('ddd', 0, 0, function (a) { + return this.localeData().weekdaysShort(this, a) + }), + U('dddd', 0, 0, function (a) { + return this.localeData().weekdays(this, a) + }), + U('e', 0, 0, 'weekday'), + U('E', 0, 0, 'isoWeekday'), + J('day', 'd'), + J('weekday', 'e'), + J('isoWeekday', 'E'), + M('day', 11), + M('weekday', 11), + M('isoWeekday', 11), + Z('d', Sd), + Z('e', Sd), + Z('E', Sd), + Z('dd', function (a, b) { + return b.weekdaysMinRegex(a) + }), + Z('ddd', function (a, b) { + return b.weekdaysShortRegex(a) + }), + Z('dddd', function (a, b) { + return b.weekdaysRegex(a) + }), + ca(['dd', 'ddd', 'dddd'], function (a, b, c, d) { + var e = c._locale.weekdaysParse(a, d, c._strict) + null != e ? (b.d = e) : (n(c).invalidWeekday = a) + }), + ca(['d', 'e', 'E'], function (a, b, c, d) { + b[d] = u(a) + }) + var ve = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + we = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + xe = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + ye = be, + ze = be, + Ae = be + U('H', ['HH', 2], 0, 'hour'), + U('h', ['hh', 2], 0, Ra), + U('k', ['kk', 2], 0, Sa), + U('hmm', 0, 0, function () { + return '' + Ra.apply(this) + T(this.minutes(), 2) + }), + U('hmmss', 0, 0, function () { + return ( + '' + + Ra.apply(this) + + T(this.minutes(), 2) + + T(this.seconds(), 2) + ) + }), + U('Hmm', 0, 0, function () { + return '' + this.hours() + T(this.minutes(), 2) + }), + U('Hmmss', 0, 0, function () { + return ( + '' + this.hours() + T(this.minutes(), 2) + T(this.seconds(), 2) + ) + }), + Ta('a', !0), + Ta('A', !1), + J('hour', 'h'), + M('hour', 13), + Z('a', Ua), + Z('A', Ua), + Z('H', Sd), + Z('h', Sd), + Z('k', Sd), + Z('HH', Sd, Od), + Z('hh', Sd, Od), + Z('kk', Sd, Od), + Z('hmm', Td), + Z('hmmss', Ud), + Z('Hmm', Td), + Z('Hmmss', Ud), + ba(['H', 'HH'], he), + ba(['k', 'kk'], function (a, b, c) { + var d = u(a) + b[he] = 24 === d ? 0 : d + }), + ba(['a', 'A'], function (a, b, c) { + ;(c._isPm = c._locale.isPM(a)), (c._meridiem = a) + }), + ba(['h', 'hh'], function (a, b, c) { + ;(b[he] = u(a)), (n(c).bigHour = !0) + }), + ba('hmm', function (a, b, c) { + var d = a.length - 2 + ;(b[he] = u(a.substr(0, d))), + (b[ie] = u(a.substr(d))), + (n(c).bigHour = !0) + }), + ba('hmmss', function (a, b, c) { + var d = a.length - 4, + e = a.length - 2 + ;(b[he] = u(a.substr(0, d))), + (b[ie] = u(a.substr(d, 2))), + (b[je] = u(a.substr(e))), + (n(c).bigHour = !0) + }), + ba('Hmm', function (a, b, c) { + var d = a.length - 2 + ;(b[he] = u(a.substr(0, d))), (b[ie] = u(a.substr(d))) + }), + ba('Hmmss', function (a, b, c) { + var d = a.length - 4, + e = a.length - 2 + ;(b[he] = u(a.substr(0, d))), + (b[ie] = u(a.substr(d, 2))), + (b[je] = u(a.substr(e))) + }) + var Be, + Ce = /[ap]\.?m?\.?/i, + De = O('Hours', !0), + Ee = { + calendar: Bd, + longDateFormat: Cd, + invalidDate: Dd, + ordinal: Ed, + dayOfMonthOrdinalParse: Fd, + relativeTime: Gd, + months: pe, + monthsShort: qe, + week: ue, + weekdays: ve, + weekdaysMin: xe, + weekdaysShort: we, + meridiemParse: Ce, + }, + Fe = {}, + Ge = {}, + He = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + Ie = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + Je = /Z|[+-]\d\d(?::?\d\d)?/, + Ke = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], + ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], + ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], + ['GGGG-[W]WW', /\d{4}-W\d\d/, !1], + ['YYYY-DDD', /\d{4}-\d{3}/], + ['YYYY-MM', /\d{4}-\d\d/, !1], + ['YYYYYYMMDD', /[+-]\d{10}/], + ['YYYYMMDD', /\d{8}/], + ['GGGG[W]WWE', /\d{4}W\d{3}/], + ['GGGG[W]WW', /\d{4}W\d{2}/, !1], + ['YYYYDDD', /\d{7}/], + ], + Le = [ + ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], + ['HH:mm:ss', /\d\d:\d\d:\d\d/], + ['HH:mm', /\d\d:\d\d/], + ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], + ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], + ['HHmmss', /\d\d\d\d\d\d/], + ['HHmm', /\d\d\d\d/], + ['HH', /\d\d/], + ], + Me = /^\/?Date\((\-?\d+)/i, + Ne = /^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/ + ;(a.createFromInputFallback = x( + 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', + function (a) { + a._d = new Date(a._i + (a._useUTC ? ' UTC' : '')) + } + )), + (a.ISO_8601 = function () {}), + (a.RFC_2822 = function () {}) + var Oe = x( + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var a = tb.apply(null, arguments) + return this.isValid() && a.isValid() + ? a < this + ? this + : a + : p() + } + ), + Pe = x( + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var a = tb.apply(null, arguments) + return this.isValid() && a.isValid() + ? a > this + ? this + : a + : p() + } + ), + Qe = function () { + return Date.now ? Date.now() : +new Date() + }, + Re = [ + 'year', + 'quarter', + 'month', + 'week', + 'day', + 'hour', + 'minute', + 'second', + 'millisecond', + ] + Db('Z', ':'), + Db('ZZ', ''), + Z('Z', _d), + Z('ZZ', _d), + ba(['Z', 'ZZ'], function (a, b, c) { + ;(c._useUTC = !0), (c._tzm = Eb(_d, a)) + }) + var Se = /([\+\-]|\d\d)/gi + a.updateOffset = function () {} + var Te = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, + Ue = /^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/ + ;(Sb.fn = Ab.prototype), (Sb.invalid = zb) + var Ve = Wb(1, 'add'), + We = Wb(-1, 'subtract') + ;(a.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'), + (a.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]') + var Xe = x( + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', + function (a) { + return void 0 === a ? this.localeData() : this.locale(a) + } + ) + U(0, ['gg', 2], 0, function () { + return this.weekYear() % 100 + }), + U(0, ['GG', 2], 0, function () { + return this.isoWeekYear() % 100 + }), + Dc('gggg', 'weekYear'), + Dc('ggggg', 'weekYear'), + Dc('GGGG', 'isoWeekYear'), + Dc('GGGGG', 'isoWeekYear'), + J('weekYear', 'gg'), + J('isoWeekYear', 'GG'), + M('weekYear', 1), + M('isoWeekYear', 1), + Z('G', Zd), + Z('g', Zd), + Z('GG', Sd, Od), + Z('gg', Sd, Od), + Z('GGGG', Wd, Qd), + Z('gggg', Wd, Qd), + Z('GGGGG', Xd, Rd), + Z('ggggg', Xd, Rd), + ca(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (a, b, c, d) { + b[d.substr(0, 2)] = u(a) + }), + ca(['gg', 'GG'], function (b, c, d, e) { + c[e] = a.parseTwoDigitYear(b) + }), + U('Q', 0, 'Qo', 'quarter'), + J('quarter', 'Q'), + M('quarter', 7), + Z('Q', Nd), + ba('Q', function (a, b) { + b[fe] = 3 * (u(a) - 1) + }), + U('D', ['DD', 2], 'Do', 'date'), + J('date', 'D'), + M('date', 9), + Z('D', Sd), + Z('DD', Sd, Od), + Z('Do', function (a, b) { + return a + ? b._dayOfMonthOrdinalParse || b._ordinalParse + : b._dayOfMonthOrdinalParseLenient + }), + ba(['D', 'DD'], ge), + ba('Do', function (a, b) { + b[ge] = u(a.match(Sd)[0], 10) + }) + var Ye = O('Date', !0) + U('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'), + J('dayOfYear', 'DDD'), + M('dayOfYear', 4), + Z('DDD', Vd), + Z('DDDD', Pd), + ba(['DDD', 'DDDD'], function (a, b, c) { + c._dayOfYear = u(a) + }), + U('m', ['mm', 2], 0, 'minute'), + J('minute', 'm'), + M('minute', 14), + Z('m', Sd), + Z('mm', Sd, Od), + ba(['m', 'mm'], ie) + var Ze = O('Minutes', !1) + U('s', ['ss', 2], 0, 'second'), + J('second', 's'), + M('second', 15), + Z('s', Sd), + Z('ss', Sd, Od), + ba(['s', 'ss'], je) + var $e = O('Seconds', !1) + U('S', 0, 0, function () { + return ~~(this.millisecond() / 100) + }), + U(0, ['SS', 2], 0, function () { + return ~~(this.millisecond() / 10) + }), + U(0, ['SSS', 3], 0, 'millisecond'), + U(0, ['SSSS', 4], 0, function () { + return 10 * this.millisecond() + }), + U(0, ['SSSSS', 5], 0, function () { + return 100 * this.millisecond() + }), + U(0, ['SSSSSS', 6], 0, function () { + return 1e3 * this.millisecond() + }), + U(0, ['SSSSSSS', 7], 0, function () { + return 1e4 * this.millisecond() + }), + U(0, ['SSSSSSSS', 8], 0, function () { + return 1e5 * this.millisecond() + }), + U(0, ['SSSSSSSSS', 9], 0, function () { + return 1e6 * this.millisecond() + }), + J('millisecond', 'ms'), + M('millisecond', 16), + Z('S', Vd, Nd), + Z('SS', Vd, Od), + Z('SSS', Vd, Pd) + var _e + for (_e = 'SSSS'; _e.length <= 9; _e += 'S') Z(_e, Yd) + for (_e = 'S'; _e.length <= 9; _e += 'S') ba(_e, Mc) + var af = O('Milliseconds', !1) + U('z', 0, 0, 'zoneAbbr'), U('zz', 0, 0, 'zoneName') + var bf = r.prototype + ;(bf.add = Ve), + (bf.calendar = Zb), + (bf.clone = $b), + (bf.diff = fc), + (bf.endOf = sc), + (bf.format = kc), + (bf.from = lc), + (bf.fromNow = mc), + (bf.to = nc), + (bf.toNow = oc), + (bf.get = R), + (bf.invalidAt = Bc), + (bf.isAfter = _b), + (bf.isBefore = ac), + (bf.isBetween = bc), + (bf.isSame = cc), + (bf.isSameOrAfter = dc), + (bf.isSameOrBefore = ec), + (bf.isValid = zc), + (bf.lang = Xe), + (bf.locale = pc), + (bf.localeData = qc), + (bf.max = Pe), + (bf.min = Oe), + (bf.parsingFlags = Ac), + (bf.set = S), + (bf.startOf = rc), + (bf.subtract = We), + (bf.toArray = wc), + (bf.toObject = xc), + (bf.toDate = vc), + (bf.toISOString = ic), + (bf.inspect = jc), + (bf.toJSON = yc), + (bf.toString = hc), + (bf.unix = uc), + (bf.valueOf = tc), + (bf.creationData = Cc), + (bf.year = te), + (bf.isLeapYear = ra), + (bf.weekYear = Ec), + (bf.isoWeekYear = Fc), + (bf.quarter = bf.quarters = Kc), + (bf.month = ka), + (bf.daysInMonth = la), + (bf.week = bf.weeks = Ba), + (bf.isoWeek = bf.isoWeeks = Ca), + (bf.weeksInYear = Hc), + (bf.isoWeeksInYear = Gc), + (bf.date = Ye), + (bf.day = bf.days = Ka), + (bf.weekday = La), + (bf.isoWeekday = Ma), + (bf.dayOfYear = Lc), + (bf.hour = bf.hours = De), + (bf.minute = bf.minutes = Ze), + (bf.second = bf.seconds = $e), + (bf.millisecond = bf.milliseconds = af), + (bf.utcOffset = Hb), + (bf.utc = Jb), + (bf.local = Kb), + (bf.parseZone = Lb), + (bf.hasAlignedHourOffset = Mb), + (bf.isDST = Nb), + (bf.isLocal = Pb), + (bf.isUtcOffset = Qb), + (bf.isUtc = Rb), + (bf.isUTC = Rb), + (bf.zoneAbbr = Nc), + (bf.zoneName = Oc), + (bf.dates = x('dates accessor is deprecated. Use date instead.', Ye)), + (bf.months = x('months accessor is deprecated. Use month instead', ka)), + (bf.years = x('years accessor is deprecated. Use year instead', te)), + (bf.zone = x( + 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', + Ib + )), + (bf.isDSTShifted = x( + 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', + Ob + )) + var cf = C.prototype + ;(cf.calendar = D), + (cf.longDateFormat = E), + (cf.invalidDate = F), + (cf.ordinal = G), + (cf.preparse = Rc), + (cf.postformat = Rc), + (cf.relativeTime = H), + (cf.pastFuture = I), + (cf.set = A), + (cf.months = fa), + (cf.monthsShort = ga), + (cf.monthsParse = ia), + (cf.monthsRegex = na), + (cf.monthsShortRegex = ma), + (cf.week = ya), + (cf.firstDayOfYear = Aa), + (cf.firstDayOfWeek = za), + (cf.weekdays = Fa), + (cf.weekdaysMin = Ha), + (cf.weekdaysShort = Ga), + (cf.weekdaysParse = Ja), + (cf.weekdaysRegex = Na), + (cf.weekdaysShortRegex = Oa), + (cf.weekdaysMinRegex = Pa), + (cf.isPM = Va), + (cf.meridiem = Wa), + $a('en', { + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (a) { + var b = a % 10, + c = + 1 === u((a % 100) / 10) + ? 'th' + : 1 === b + ? 'st' + : 2 === b + ? 'nd' + : 3 === b + ? 'rd' + : 'th' + return a + c + }, + }), + (a.lang = x( + 'moment.lang is deprecated. Use moment.locale instead.', + $a + )), + (a.langData = x( + 'moment.langData is deprecated. Use moment.localeData instead.', + bb + )) + var df = Math.abs, + ef = id('ms'), + ff = id('s'), + gf = id('m'), + hf = id('h'), + jf = id('d'), + kf = id('w'), + lf = id('M'), + mf = id('y'), + nf = kd('milliseconds'), + of = kd('seconds'), + pf = kd('minutes'), + qf = kd('hours'), + rf = kd('days'), + sf = kd('months'), + tf = kd('years'), + uf = Math.round, + vf = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }, + wf = Math.abs, + xf = Ab.prototype + return ( + (xf.isValid = yb), + (xf.abs = $c), + (xf.add = ad), + (xf.subtract = bd), + (xf.as = gd), + (xf.asMilliseconds = ef), + (xf.asSeconds = ff), + (xf.asMinutes = gf), + (xf.asHours = hf), + (xf.asDays = jf), + (xf.asWeeks = kf), + (xf.asMonths = lf), + (xf.asYears = mf), + (xf.valueOf = hd), + (xf._bubble = dd), + (xf.get = jd), + (xf.milliseconds = nf), + (xf.seconds = of), + (xf.minutes = pf), + (xf.hours = qf), + (xf.days = rf), + (xf.weeks = ld), + (xf.months = sf), + (xf.years = tf), + (xf.humanize = qd), + (xf.toISOString = rd), + (xf.toString = rd), + (xf.toJSON = rd), + (xf.locale = pc), + (xf.localeData = qc), + (xf.toIsoString = x( + 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', + rd + )), + (xf.lang = Xe), + U('X', 0, 0, 'unix'), + U('x', 0, 0, 'valueOf'), + Z('x', Zd), + Z('X', ae), + ba('X', function (a, b, c) { + c._d = new Date(1e3 * parseFloat(a, 10)) + }), + ba('x', function (a, b, c) { + c._d = new Date(u(a)) + }), + (a.version = '2.18.1'), + b(tb), + (a.fn = bf), + (a.min = vb), + (a.max = wb), + (a.now = Qe), + (a.utc = l), + (a.unix = Pc), + (a.months = Vc), + (a.isDate = h), + (a.locale = $a), + (a.invalid = p), + (a.duration = Sb), + (a.isMoment = s), + (a.weekdays = Xc), + (a.parseZone = Qc), + (a.localeData = bb), + (a.isDuration = Bb), + (a.monthsShort = Wc), + (a.weekdaysMin = Zc), + (a.defineLocale = _a), + (a.updateLocale = ab), + (a.locales = cb), + (a.weekdaysShort = Yc), + (a.normalizeUnits = K), + (a.relativeTimeRounding = od), + (a.relativeTimeThreshold = pd), + (a.calendarFormat = Yb), + (a.prototype = bf), + a + ) +}) diff --git a/web/layui__/puble.js b/web/layui__/puble.js new file mode 100644 index 0000000..1db6548 --- /dev/null +++ b/web/layui__/puble.js @@ -0,0 +1,701 @@ +//筛选条件 +var ScreenArr=[ + { + 'title':'全部', + 'id':'0', + 'Category':[] + }, + { + 'title':'用户属性', + 'id':'1', + 'Category':[ + {'title':'账户ID','id':'10','type':'string'}, + {'title':'访客ID','id':'11','type':'string'}, + {'title':'注册时间','id':'12','type':'time'}, + {'title':'来源渠道','id':'13','type':'time'}, + ] + }, + // { + // 'title':'测试', + // 'id':'2', + // 'Category':[ + // {'title':'账户ID','id':'20','type':'string'}, + // {'title':'访客ID','id':'21','type':'string'}, + // {'title':'注册时间','id':'22','type':'time'}, + // {'title':'来源渠道','id':'23','type':'time'}, + // ] + // } +] + +var ScreentwoArr = [ + {'title':'等于','id':'0','default':false}, + {'title':'不等于','id':'1','default':false}, + {'title':'包括','id':'2','default':true}, + {'title':'不包括','id':'3','default':false}, + {'title':'有值','id':'4','default':false}, + {'title':'无值','id':'5','default':false}, + {'title':'正则匹配','id':'6','default':false}, + {'title':'正则不匹配','id':'7','default':false}, +] + +//显示隐藏控件 +function moveaction(x){ + $('#'+x+' '+".control").show(); +} +function outaction(x){ + $('#'+x+' '+".control").hide(); +} + +function emptytxt(){ + $("#zhuanghu_txt").val(''); + $(".qingkomg").hide(); + switchnav(0); +} + +$("#search").click(function(){ + $("#mask_box").show(); + $("#search_pop").show(); + + var sele ='' + for(let i in ScreentwoArr){ + if(ScreentwoArr[i]['default']){ + sele += '' + }else { + sele += '' + } + } + $("#judge_box").append(sele);//添加内容 + +}) + +$("#mask_box").click(function(){ + console.log($(".Screen").html()) + if($(".Screen").html() == '' || $(".Screen").html() == undefined){ + $("#mask_box").hide(); + $("#search_pop").hide(); + }else { + $(".Screen").hide(); + $(".Screen").empty(); + } +}) + +$("#judge_box").click(function(){ + if($("#judge_box_con").css('display') == 'none'){ + $("#judge_box_con").show(); + }else { + $("#judge_box_con").hide(); + } +}) + + +var popid = ''//弹出层id +function guanbitanchuang(){ + if(popid == "kanban"){ + $('#kanban').animate({width:'0px'}); + }else if( popid == "TabOperation_box"){ + $("#"+popid).hide(); + $(tabbut).parents("a").removeClass("category2"); + $(tabbut).parents("a").addClass("category"); + }else { + $("#"+popid).slideUp("slow"); + } + $('#zhezhao_bg').hide(); + popid = ''; +} + +$("#chuangjian").click(function(){ + popid = 'newskanban_box'; + $("#newskanban_box").show(); + $("#newskanban_box").slideDown("slow"); + $('#zhezhao_bg').show(); +}) + +$("#kanbanbtn").click(function(){ + popid = 'kanban' + $("#kanban").show(); + $("#kanban").animate({width:"560px"},500); + $('#zhezhao_bg').show(); +}) + +//搜索里的条件选择点击事件 +$("#zhanghu_box").click(function(){ + $(".Screen").empty(); + var obj = $("#zhanghu_box"); + var offset = obj.offset() + $(".Screen").css('display','block'); + Screenfun(offset.left,offset.top+obj.height()); + // console.log(offset); + // console.log(offset.left+obj.width()); + // console.log(offset.top+obj.height()); + // if($("#zhuanghu_xila").css('display') == 'none'){ + // $("#zhuanghu_xila").show(); + // }else { + // $("#zhuanghu_xila").hide(); + // } +}) + + +//筛选方法deviationleft向左偏移,deviationtop向右偏移 +function Screenfun(deviationleft, deviationtop){ + + var screentitArr,screenid,whole; //筛选tab,筛选单行内容,整体内容 + for(let i in ScreenArr){ + if(screentitArr ){ + screentitArr = screentitArr + ""+ScreenArr[i]['title']+"" + }else{ + screentitArr = ""+ScreenArr[i]['title']+"
          " + } + } + for(let i in ScreenArr){ + if(ScreenArr[i]['Category'].length > 0){ + if(whole){ + whole= whole+ `
          `+ ScreenArr[i]['title'] +`
          ` + }else { + whole= `
          `+ ScreenArr[i]['title'] +`
          ` + } + } + for(let j in ScreenArr[i]['Category']){ + screenid = screenid + '
          '+ ScreenArr[i]["Category"][j]["title"] +'
          ' + } + if(whole){ + whole = whole + screenid+'
          ' + } + screenid = '';//清空screenid,进行下次赋值 + } + + var Divpush = `
          +
          + + + +
          +
          +
          `+screentitArr+`
          +
          +
          `+whole+`
          ` + + $('.Screen').append(Divpush); + +} +//单击筛选tab事件 +function switchnav(id){ + var whole,screenid; + if(id && id != 0){ + $("#zhuanghu_xila .xian").remove(); + $("#nav"+id).append("
          "); + $("#zhuanghu_xila .zhuang_conetnt").empty(); + + if(ScreenArr[id]['Category'].length > 0){ + whole= `
          `+ ScreenArr[id]['title'] +`
          ` + } + for(let j in ScreenArr[id]['Category']){ + if(screenid){ + screenid = screenid + '
          '+ ScreenArr[id]['Category'][j]['title'] +'
          ' + }else { + screenid = '
          '+ ScreenArr[id]['Category'][j]['title'] +'
          ' + } + } + whole = whole + screenid+'
          ' + screenid = '';//清空screenid,进行下次赋值 + }else { + $("#zhuanghu_xila .xian").remove(); + $("#nav"+id).append("
          "); + $("#zhuanghu_xila .zhuang_conetnt").empty(); + for(let i in ScreenArr){ + if(ScreenArr[i]['Category'].length > 0){ + if(whole){ + whole= whole+ `
          `+ ScreenArr[i]['title'] +`
          ` + }else { + whole= `
          `+ ScreenArr[i]['title'] +`
          ` + } + } + for(let j in ScreenArr[i]['Category']){ + if(screenid){ + screenid = screenid + '
          '+ ScreenArr[i]['Category'][j]['title'] +'
          ' + }else { + screenid = '
          '+ ScreenArr[i]['Category'][j]['title'] +'
          ' + } + } + if(whole){ + whole = whole + screenid+'
          ' + } + screenid = '';//清空screenid,进行下次赋值 + } + } + $('.zhuang_conetnt').append(whole); +} + +function querytab(){ + var txt = $("#zhuanghu_txt").val(); + console.log(txt); + if(txt == ""){ + $(".qingkomg").hide(); + }else { + $(".qingkomg").show(); + } + var whole,screenid; + $("#zhuanghu_xila .zhuang_conetnt").empty(); + + for(let i in ScreenArr){ + if(ScreenArr[i]['Category'].length > 0){ + if(whole){ + whole= whole+ `
          `+ ScreenArr[i]['title'] +`
          ` + }else { + whole= `
          `+ ScreenArr[i]['title'] +`
          ` + } + } + for(let j in ScreenArr[i]['Category']){ + if(ScreenArr[i]['Category'][j]['title'].indexOf(txt) != -1){ + if(screenid){ + screenid = screenid + '
          '+ ScreenArr[i]['Category'][j]['title'] +'
          ' + }else { + screenid = '
          '+ ScreenArr[i]['Category'][j]['title'] +'
          ' + } + } + } + if(whole){ + whole = whole + screenid+'
          ' + } + screenid = '';//清空screenid,进行下次赋值 + } + + + + whole = whole + screenid+'
          ' + screenid = '';//清空screenid,进行下次赋值 + $('.zhuang_conetnt').append(whole); +} + +function ScreenClick(id){ + $("#zhuanghu_xila").hide(); + $("#zhuanghu_xila").empty(); + var judge_boxtxt = $('#judge_box').val(); + var data ={}; + for(let i in ScreenArr){ + for(let j in ScreenArr[i]['Category']){ + if(ScreenArr[i]['Category'][j]['id'] == id){ + data = ScreenArr[i]['Category'][j]; + break; + } + } + } + + if(data['type'] == 'time'){ + $(".judge_box").hide(); + $(".search_txt").hide(); + $(".time-box").show(); + }else { + $(".judge_box").show(); + if(judge_boxtxt == 4 || judge_boxtxt == 5){ + $("#judge_input").val(''); + $("#judge_input").hide(); + }else { + $(".search_txt").show(); + } + $(".time-box").hide(); + } + $("#zhanghu_box span").html(data['title']); + $("#zhanghu_box").attr('title',data['title']); + $(".Screen").hide(); + $(".Screen").empty(); +} + +$("#judge_box").change(function(){ + var judgeid = $(this).val(); + if(judgeid == 4 || judgeid == 5){ + $('#judge_input').css('display','none') + }else { + $('#judge_input').css('display','block') + } +}) + +var locale = { + "format": 'YYYY-MM-DD', + "separator": " - ", + "applyLabel": "应用", + "cancelLabel": "取消", + "fromLabel": "起始时间", + "toLabel": "结束时间'", + "customRangeLabel": "自定义", + "weekLabel": "W", + "daysOfWeek": ["日", "一", "二", "三", "四", "五", "六"], + "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], + "firstDay": 1 +}; +$('.timechoice').daterangepicker({ + 'locale': locale, + ranges: { + '今日': [moment(), moment()], + '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], + '最近7日': [moment().subtract(6, 'days'), moment()], + '最近30日': [moment().subtract(29, 'days'), moment()], + '上周': [moment().subtract(1, 'week').startOf('week'), moment().subtract(1, 'week').endOf('week')], + '本周': [moment().startOf('week'), moment()], + '本月': [moment().startOf('month'), moment().endOf('month')], + '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month') + ] + }, + "alwaysShowCalendars": true, + "startDate": moment().subtract(29, 'days'), + "endDate": new Date(), + "opens": "right", +}, function (start, end, label) { + // console.log(moment().subtract(1, 'month')) + // console.log('New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + ' (predefined range: ' + label + ')'); +}); + +// 侧边栏导航 + +//看板数组 +var KanBanData = [ + { + 'title':'共享给我的','id':'share','type':'ordinary','Category': [ + {'title': '共享给我的测试1','id':'share_0' }, + {'title': '共享给我的测试2','id':'share_1' } + ] + }, + { + "title":'未分组','id':'Ungrouped','type':'ordinary','Category':[ + {'title':'未分组测试1','id':'Ungrouped_0'}, + {'title':'未分组测试2','id':'Ungrouped_1'}, + ] + }, + { + "title":'创建文件夹','id':'establish','type':'file','Category':[ + {'title':'创建测试1','id':'establish_0'}, + {'title':'创建测试2','id':'establish_2'}, + ] + } +] + +// 项目数组 +var ProjectData = [ + { + "title":'DEMO空间', + 'id':'demo', + 'type':'ordinary', + 'Category':[ + {'title':'测试2','id':'ceshi_2','type':'ordinary','Category':[]}, + {'title':'测试3','id':'ceshi_3','type':'ordinary','Category':[]}, + {'title':'测试4','id':'ceshi_4','type':'ordinary','Category':[]}, + {'title':'测试5','id':'ceshi_5','type':'ordinary','Category':[]}, + ] + }, + { + "title":'未分组','id':'ceshi','type':'ordinary','Category':[ + {'title':'测试1','id':'ceshi_0','type':'file','Category':[ + {'title':'测试7','id':'ceshi_7','type':'ordinary'}, + ]}, + {'title':'测试6','id':'ceshi_6','type':'ordinary','Category':[]}, + ] + } +] + + +$('.category').on("mouseover",function(){ + // "鼠标移入时想要的效果" + $(this).addClass("classa"); +}); +$('.category').on("mouseout",function(){ + // "鼠标移出事想要的效果" + $(this).removeClass("classa"); +}); +$(".layui-left-dd").on("mouseover",function(){ + console.log(1111) + $(this).addClass("onlevel"); +}) +$('.layui-left-dd').on("mouseout",function(){ + // "鼠标移出事想要的效果" + $(this).removeClass("onlevel"); +}); + +var TabOperationData = [ + {'type':'kanban','tanchuang':[ + {'title':'重命名','img':'xiugai.png','click':'modifyname'}, + {'title':'移动至','img':'yidong.png','click':'move'}, + {'title':'复制看板','img':'fuzhi.png','click':'copy'}, + {'title':'删除看板','img':'del.png','click':'del'}, + ]}, + {'type':'wenjian','tanchuang':[ + {'title':'重新命名','img':'xiugai.png','click':'modifyname'}, + {'title':'删除文件夹','img':'del.png','click':'del'}, + ]}, + {'type':'baobiao','tanchuang':[ + {'title':'复制看板','img':'fuzhi.png','click':'copy'} + ]}, +] +var tabbut='' +//二级导航操作按钮 +function TabOperation(e,type,id,name){ + $("#TabOperation").empty(); + var lihtml ='' + for(let i in TabOperationData){ + if(TabOperationData[i]['type'] == type){ + for(let j in TabOperationData[i]['tanchuang']){ + lihtml +=`
        • + + `+ TabOperationData[i]['tanchuang'][j]['title'] +` +
        • ` + } + } + } + + $('#TabOperation').append(lihtml); + var obj = $(e).offset(); + $(e).parents("a").removeClass("category"); + $(e).parents("a").addClass("category2"); + popid = 'TabOperation_box'; + tabbut = e + $('#zhezhao_bg').show(); + $(".TabOperation_box").show(); + $(".TabOperation_box").css('top',obj.top+$(e).height()) + $(".TabOperation_box").css('left',obj.left-90) +} + +$("#modifyname-cha").click(function(){ + $(".modifyname-bg").hide(); +}) +var SelectTabId +// 侧边栏操作事件 +function TabOperationtab(id,type,name){ + $("#"+popid).hide(); + $(tabbut).parents("a").removeClass("category2"); + $(tabbut).parents("a").addClass("category"); + SelectTabId = id + if(type == 'modifyname'){ + $("#modifyname-txt").val(name); + $('.modifyname-bg').show(); + $("#modifynameid").val(id); + }else if(type == 'move'){ + var comboTree1 + comboTree1 = $('.justAnotherInputBox1').comboTree({ + source : KanBanData, + isMultiple: false + }); + $('.yidong-bg').show(); + $("#yidongid").val(id); + }else if(type == 'copy'){ + var comboTree1 + $("#copyname-txt").val(name); + comboTree1 = $('.justAnotherInputBox1').comboTree({ + source : KanBanData, + isMultiple: false + }); + $('.copy-bg').show(); + $("#copyid").val(id); + }else { + $("#del-tit").html(name); + $('.del-bg').show(); + $("#delid").val(id); + } + $("#zhezhao_bg").hide(); +} + +$("#modifyname-qx").click(function(){ + // 取消 + $(".modifyname-bg").hide(); + Emptydata() +}) + +$("#modifyname-qd").click(function(){ + // 确定 + var text = $("#modifyname-txt").val(); + var id = $("#modifynameid").val(); + $(".modifyname-bg").hide(); + Emptydata(); +}) +$("#yidong-qx").click(function(){ + $(".yidong-bg ").hide(); + Emptydata('yidongkanban','yidong') +}) +$("#yidong-qd").click(function(){ + // 确定 + if(choicetype == "kanban"){ + var txt = $('.justAnotherInputBox1').val(); + }else { + var txt = $('.justAnotherInputBox2').val(); + } + var id = $("#yidongid").val(); //需要移动的id + var yidongid = MatchingId(txt);//移动到的id + $(".yidong-bg").hide(); + Emptydata('yidongkanban','yidong') +}) +$("#yidong-cha").click(function(){ + $(".yidong-bg").hide(); + Emptydata('yidongkanban','yidong') +}) + +$("#copy-qx").click(function(){ + $(".copy-bg ").hide(); + Emptydata('copykanban','copy') +}) +$("#copy-qd").click(function(){ + // 确定 + var title = $("#copy-cha").val();//看板名 + if(choicetype == "kanban"){ + var txt = $('.justAnotherInputBox1').val(); //移动的位置 + }else { + var txt = $('.justAnotherInputBox2').val(); + } + var id = $("#copyid").val(); //需要移动的id + var yidongid = MatchingId(txt);//移动到的id + $(".copy-bg").hide(); + Emptydata('copykanban','copy') +}) +$("#copy-cha").click(function(){ + $(".copy-bg").hide(); + Emptydata('copykanban','copy') +}) +$("#del-qx").click(function(){ + $(".del-bg").hide(); + Emptydata() +}) +$("#del-qd").click(function(){ + var id = $("#delid").val(); + $(".del-bg").hide(); + Emptydata(); + // SelectTabId +}) + +function Emptydata(id,boxname){ + SelectTabId = ''; + choicetype = ''; + tabdata(id,boxname) +} + +var choicetype='kanban' //选择的位置 +function tabdata(id,boxname){ + $("."+boxname+'-tab div').removeClass('tabdata'); + $("#"+id).addClass('tabdata'); + var comboTree1,comboTree2; + if(boxname != "newwenjian"){ + if(id.indexOf("kanban")>=0){ + $(".justAnotherInputBox1").show(); + $(".justAnotherInputBox2").hide(); + comboTree1 = $('.justAnotherInputBox1').comboTree({ + source : KanBanData, + isMultiple: false + }); + choicetype='kanban' + }else { + $(".justAnotherInputBox1").hide(); + $(".justAnotherInputBox2").show(); + comboTree2 = $('.justAnotherInputBox2').comboTree({ + source : ProjectData, + isMultiple: false + }); + choicetype='xiangmu' + } + }else { + if(id.indexOf("kanban")>=0){ + $(".justAnotherInputBox1").hide(); + $(".justAnotherInputBox2").hide(); + comboTree1 = $('.justAnotherInputBox1').comboTree({ + source : KanBanData, + isMultiple: false + }); + choicetype='kanban' + }else { + $(".justAnotherInputBox1").hide(); + $(".justAnotherInputBox2").show(); + comboTree2 = $('.justAnotherInputBox2').comboTree({ + source : ProjectData, + isMultiple: false + }); + choicetype='xiangmu' + } + } +} + +// 根据侧边栏中文名匹配对应id +function MatchingId(name){ + var id =''; + var data=[]; + if(choicetype == 'kanban'){ + data = KanBanData; + }else { + data = ProjectData; + } + + for(let i in data){ + if(data[i]['title'] == name){ + id = data[i]['id'] + }else { + if(data[i]['Category'].length > 0){ + for(let j in data[i]['Category']){ + if(data[i]['Category'][j]['title'] == name){ + id = data[i]['Category'][j]['id'] + } + } + }else { + continue; + } + } + } + return id; +} + +// 新建看板 +// function newkanban(){ +// var comboTree1 = $('.justAnotherInputBox1').comboTree({ +// source : KanBanData, +// isMultiple: false +// }); +// $(".new-bg").show(); +// } +$("#new-cha").click(function(){ + $("#newname-txt").val('') + $(".new-bg").hide(); + Emptydata('newkanban','new') +}) +$("#new-qx").click(function(){ + $("#newname-txt").val('') + $(".new-bg").hide(); + Emptydata('newkanban','new') +}) +$("#new-qd").click(function(){ + var txt = $("#newname-txt").val(); + if(choicetype == "kanban"){ + var Addlocation = $('.justAnotherInputBox1').val(); //移动的位置 + }else { + var Addlocation = $('.justAnotherInputBox2').val(); + } + var positionid = MatchingId(Addlocation);//移动到的id + $(".new-bg").hide(); + Emptydata('newkanban','new') +}) + +// 新建文件夹 +function newwenjian(){ + $(".newwenjian-bg").show(); +} + +$("#newwenjian-cha").click(function(){ + $("#newwenjianname-txt").val('') + $(".newwenjian-bg").hide(); + Emptydata('newwenjiankanban','newwenjian') +}) +$("#newwenjian-qx").click(function(){ + $("#newwenjianname-txt").val('') + $(".newwenjian-bg").hide(); + Emptydata('newwenjiankanban','newwenjian') +}) +$("#newwenjian-qd").click(function(){ + var txt = $("#newwenjianname-txt").val(); + if(choicetype == "kanban"){ + var Addlocation = ''; //移动的位置 + }else { + var Addlocation = $('.justAnotherInputBox2').val(); + } + var positionid + if(positionid != ""){ + positionid = MatchingId(Addlocation);//移动到的id + } + // $(".newwenjian-bg").hide(); + Emptydata('newwenjiankanban','newwenjian') +}) + +// 创建空间 +function establishkongjian(){ + $(".kongjian-bg").show(); +} \ No newline at end of file diff --git a/web/main.html b/web/main.html new file mode 100644 index 0000000..61b0289 --- /dev/null +++ b/web/main.html @@ -0,0 +1,39 @@ + + + + + LeguX + + + + + + + + + + + + + + + + + + + + + + + + + +
          + +
          + + + + + + diff --git a/web/pages/addexistuser.html b/web/pages/addexistuser.html new file mode 100644 index 0000000..446b758 --- /dev/null +++ b/web/pages/addexistuser.html @@ -0,0 +1,73 @@ + +
          + +
          +

          添加已有成员

          + +
          + +
          +
          +
          现在成员
          + +
          + + + +
          + +
          + + + +
          +
          + +
          +
          已添加成员
          +
          +
          TA账号
          +
          显示名
          +
          项目角色
          +
          数据权限
          +
          操作
          +
          +
          + + +
          + +
          +
          + +
          +
          取消
          +
          确定
          +
          + +
          + + + diff --git a/web/pages/addrole.html b/web/pages/addrole.html new file mode 100644 index 0000000..6357b83 --- /dev/null +++ b/web/pages/addrole.html @@ -0,0 +1,59 @@ + +
          +
          +
          +
          + +
          + +
          +
          +
          +
          + +
          + +
          +
          功能
          +
          操作权限
          +
          + +
          + +
          + + +
          +
          + +
          + +
          + +
          确 定
          +
          + +
          +
          +
          + + + + diff --git a/web/pages/adduser.html b/web/pages/adduser.html new file mode 100644 index 0000000..eabdf0f --- /dev/null +++ b/web/pages/adduser.html @@ -0,0 +1,50 @@ + +
          +
          +
          创建新成员
          + +
          + +
          +
          + 创建TA账号: + +
          确定
          +
          + +
          +
          +
          TA账号
          +
          项目角色
          +
          数据权限
          +
          操作
          +
          + +
          + +
          + +
          +
          +
          +
          取消
          +
          创建并导出
          +
          + +
          + diff --git a/web/pages/addusergroup.html b/web/pages/addusergroup.html new file mode 100644 index 0000000..3baae8e --- /dev/null +++ b/web/pages/addusergroup.html @@ -0,0 +1,38 @@ + +
          + +
          +
          创建成员组
          + +
          + +
          +
          +
          1
          +
          +
          成员组名称
          + +
          +
          + +
          +
          2
          +
          +
          配置成员
          +
          +
          +
          + +
          + +
          +
          + +
          +
          +
          取消
          +
          确定
          +
          +
          + +
          \ No newline at end of file diff --git a/web/pages/adminkanban.html b/web/pages/adminkanban.html new file mode 100644 index 0000000..1e1550a --- /dev/null +++ b/web/pages/adminkanban.html @@ -0,0 +1,36 @@ + +
          + +
          +
          + 管理我创建的看板 +
          + +
          + + + +
          + +
          +
          + 全选 +
          +
          + + +
          +
          + +
          +
          我的看板
          +
          +
          项目空间
          +
          +
          + + + +
          + + diff --git a/web/pages/analysis.html b/web/pages/analysis.html new file mode 100644 index 0000000..720dabb --- /dev/null +++ b/web/pages/analysis.html @@ -0,0 +1,328 @@ + +
          + +
          + +
          +
          +
          + 事件分析 +
          当前时区
          +
          +
          +
          + 近似计算 +
          +
          + +
          +
          +
          +
          + +
          +
          + +
          +
          + +
          +
          +
          + +
          + +
          + +
          + +
          +
          +
          分析指标
          +
          +
          + +
          + + +
          +
          + + 添加指标 +
          + +
          +
          +
          + +
          +
          全局筛选
          + +
          + +
          + +
          +
          +
          +
          + +
          + + + + + + +
          + +
          + +
          + + + 添加条件 + +
          +
          + +
          + +
          +
          +
          分组项
          + +
          + +
          + +
          + + + +
          + +
          + + + 添加分组项 + +
          +
          +
          + +
          + +
          +
          保存报表
          +
          计 算
          +
          + + +
          + +
          +
          +
          +
          + 玩法参与情况 +
          +
          +
          +
          +
          按天
          +
          + +
          +
          指标
          +
          分组
          +
          +
          +
          +
          +
          +
          +
          +
          + +
          + +
          + + + +
          + + + +
          +
          +
          + +
          + + + + + + + + + diff --git a/web/pages/analysisindex.html b/web/pages/analysisindex.html new file mode 100644 index 0000000..b93465e --- /dev/null +++ b/web/pages/analysisindex.html @@ -0,0 +1,2 @@ + + diff --git a/web/pages/category.html b/web/pages/category.html new file mode 100644 index 0000000..b2fdcdc --- /dev/null +++ b/web/pages/category.html @@ -0,0 +1,41 @@ +
          +
          + + + +
          +
          +
          + +
          +
          +
          + +
          +
          + + + + diff --git a/web/pages/copykanban.html b/web/pages/copykanban.html new file mode 100644 index 0000000..733de75 --- /dev/null +++ b/web/pages/copykanban.html @@ -0,0 +1,28 @@ + +
          +
          +

          复制看板

          + +
          + +
          +
          看板名称
          + +
          +
          +
          添加至
          +
          +
          我的看板
          +
          项目空间
          +
          +
          +
          + + +
          +
          复制看板将同时复制看板内的报表
          +
          +
          取消
          +
          确定
          +
          +
          \ No newline at end of file diff --git a/web/pages/dashboard.html b/web/pages/dashboard.html new file mode 100644 index 0000000..bd3f735 --- /dev/null +++ b/web/pages/dashboard.html @@ -0,0 +1,562 @@ + +
          + +
          +
          +
          + + +
          +
          + + +
          +
          + +
          +
          +
          +
          + +
          +
          + +
          + + +
          +
          +
            +
          • + + 新建看板 +
          • +
          • + + 新建文件夹 +
          • +
            +
          • + + 创建空间 +
          • + +
          +
          + + +
          +
          + +
          + +
          +
          +
          活跃用户
          +
          当前时间
          +
          + +
          +
          +
          + +
          +
          + +
          +
          + +
          + +
          + +
          + +
          +
          +
          + +
          + +
          +
          +
          +
          +

          日活跃用户数

          +
          + +
          +
          +
          +
          +
          + +
          +
          + +
          +
          + +
          +
          +
          +
          + +
          +
          + 过去30天 +
          + 按天 +
          +
          + 趋势图 +
          +
          +

          2021-03-23(二)

          +
          +
          +
          351
          +
          +
          较环比
          5.4%
          +
          较同比
          5.4%
          +
          +
          + +
          +
          +
          总和 12074
          +
          均值 402.47
          +
          +
          +
          + +
          +
          +
          + +
          +
          + +
          +
          +
          +
          +

          日活跃用户数

          +
          + +
          +
          +
          +
          +
          + +
          +
          + +
          +
          + +
          +
          +
          +
          + +
          +
          + 过去30天 +
          + 按天 +
          +
          + 趋势图 +
          +
          + +
          +
          +
          + +
          +
          +
          + +
          +
          + + +
          +
          + +
          + + +
          +
            +
          • + + 重新命名 +
          • +
          • + + 移动至 +
          • +
          • + + 复制看板 +
          • +
          • + + 删除看板 +
          • +
          +
          + + +
          +
          +
          +

          看板名称

          + +
          + +
          + +
          +
          +
          取消
          +
          确定
          +
          +
          +
          + +
          +
          +
          +

          移动至

          + +
          + +
          +
          +
          我的看板
          +
          项目空间
          +
          +
          +
          + + +
          +
          +
          取消
          +
          确定
          +
          +
          +
          + + +
          +
          +
          +

          复制看板

          + +
          + +
          +
          看板名称
          + +
          +
          +
          添加至
          +
          +
          我的看板
          +
          项目空间
          +
          +
          +
          + + +
          +
          复制看板将同时复制看板内的报表
          +
          +
          取消
          +
          确定
          +
          +
          +
          + + +
          +
          +
          +
          操作提示
          +

          确认删除【】?该操作不可恢复

          +
          + +
          +
          取消
          +
          删除
          +
          +
          +
          + + +
          +
          + +
          +

          创建空间

          +

          选择成员创建共享空间,添加看板至空间实现统一共享

          +
          +
          + 空间名称 + +
          +
          + 空间成员 +
          +添加
          +
          +
          + +
          +
          + +
          +
          取消
          +
          完成
          +
          +
          +
          +
          + + + + + + + + + + + + \ No newline at end of file diff --git a/web/pages/datarights.html b/web/pages/datarights.html new file mode 100644 index 0000000..7f61730 --- /dev/null +++ b/web/pages/datarights.html @@ -0,0 +1,45 @@ + + + + + + + + +
          + +
          + +
          +
          + 数据权限 +
          +
          + + 创建数据权限 +
          +
          + +
          +
          +
          + +
          + +
          + + + + + \ No newline at end of file diff --git a/web/pages/datarightsedit.html b/web/pages/datarightsedit.html new file mode 100644 index 0000000..dd10faf --- /dev/null +++ b/web/pages/datarightsedit.html @@ -0,0 +1,37 @@ + +
          + +
          +
          编辑数据权限
          + +
          + +
          +
          +
          数据权限名称
          +
          + +
          +
          数据权限配置
          +
          +
          + + + +
          +
          +
          + +
          + +
          +
          取消
          +
          确定
          +
          + +
          + diff --git a/web/pages/deluserinfo.html b/web/pages/deluserinfo.html new file mode 100644 index 0000000..6eec866 --- /dev/null +++ b/web/pages/deluserinfo.html @@ -0,0 +1,19 @@ + +
          +
          + 从该项目中移除此账号? +
          + +
          + 移除【 ssss 】,并移交该账户下的项目空间,看板,报表,条件分群,ID分群,标签,预警,虚拟属性,维度表属性等至: + +
          +
          +
          直接移除账号
          +
          + + +
          +
          +
          + diff --git a/web/pages/dropdownlist.html b/web/pages/dropdownlist.html new file mode 100644 index 0000000..25dccbd --- /dev/null +++ b/web/pages/dropdownlist.html @@ -0,0 +1,14 @@ + + + + diff --git a/web/pages/eventattradmin.html b/web/pages/eventattradmin.html new file mode 100644 index 0000000..ae1a3ea --- /dev/null +++ b/web/pages/eventattradmin.html @@ -0,0 +1,38 @@ + +
          + +
          +
          +
          事件属性管理
          + +
          +
          + + + +
          +
          + + 显示名配置 +
          + +
          + + 虚拟事件属性 +
          + +
          + +
          + +
          +
          +
          + +
          + +
          + + \ No newline at end of file diff --git a/web/pages/eventattradminedit.html b/web/pages/eventattradminedit.html new file mode 100644 index 0000000..73dfac8 --- /dev/null +++ b/web/pages/eventattradminedit.html @@ -0,0 +1,49 @@ + +
          + +
          + +
          + +
          + +
          + +
          +
          + +
          + +
          + +
          +
          + + +
          +
          + +
          + + + +
          +
          +
          + +
          + +
          + +
          +
          取 消
          +
          确 定
          +
          + +
          + + diff --git a/web/pages/groupeditemspop.html b/web/pages/groupeditemspop.html new file mode 100644 index 0000000..302b949 --- /dev/null +++ b/web/pages/groupeditemspop.html @@ -0,0 +1,27 @@ + +
          +
          +
          +
          + +
          +
          +
          + +
          + +
          +
          确定
          +
          + +
          +
          + \ No newline at end of file diff --git a/web/pages/groupitem.html b/web/pages/groupitem.html new file mode 100644 index 0000000..2e67104 --- /dev/null +++ b/web/pages/groupitem.html @@ -0,0 +1,21 @@ + +
          +
          + 汇总粒度 + +
          +
          + + diff --git a/web/pages/importuser.html b/web/pages/importuser.html new file mode 100644 index 0000000..1055106 --- /dev/null +++ b/web/pages/importuser.html @@ -0,0 +1,36 @@ +
          + +
          +
          导入其他项目成员
          + +
          + +
          +
          +
          +
          + +
          + +
          +
          +
          +
          +

          + 我们会将该项目下的 成员 角色 一并导入,已添加到本项目的成员跳过此步骤 +

          +
          + +
          +
          确定
          +
          + +
          + + diff --git a/web/pages/jurisdiction.html b/web/pages/jurisdiction.html new file mode 100644 index 0000000..136b501 --- /dev/null +++ b/web/pages/jurisdiction.html @@ -0,0 +1,26 @@ + +
          +
          + +
          +
          +

          仅查看

          +

          仅可查看空间下看板

          +
          +
          + +
          +
          + +
          +
          +

          仅编辑

          +

          允许在空间下添加看板或文件夹

          +
          +
          + +
          +
          + +
          +
          \ No newline at end of file diff --git a/web/pages/kanbanshezhi.html b/web/pages/kanbanshezhi.html new file mode 100644 index 0000000..64fe1e1 --- /dev/null +++ b/web/pages/kanbanshezhi.html @@ -0,0 +1,128 @@ +
          +
          +
          看板设置
          +
          +
          + +
          +
          +

          更新方式

          +
          + +
          +
          +

          实时更新

          + +
          +
          +

          看板加载后实时更新数据

          +
          +
          + +
          +
          +

          定时更新

          + +
          +
          +

          每天定时更新,成员刷新看板时也更新数据

          + +
          +
          + +
          +
          + +
          +
          +
          +
          +

          近似计算

          +
          +
          +
          + +
          +
          +
          + +
          +
          +

          开启后,将近似计算触发用户数、人均次数、人均值和去重数,极大优化性能减少计算时间,结果偏差控制在千分之四内

          +
          +
          +
          +
          + +
          +
          +
          +
          +

          时区设置

          +
          +
          +
          + +
          +
          +
          + +
          +
          + +
          +

          固定看板时区

          + +
          + +
          +
          +
          +
          + +
          +
          取消
          +
          确定
          +
          + + +
          + +
          \ No newline at end of file diff --git a/web/pages/kongjianshezhi.html b/web/pages/kongjianshezhi.html new file mode 100644 index 0000000..f8f7fd3 --- /dev/null +++ b/web/pages/kongjianshezhi.html @@ -0,0 +1,122 @@ + +
          +
          + + +
          +

          创建空间

          +

          选择成员创建共享空间,添加看板至空间实现统一共享

          +
          +
          + 空间名称 + +
          +
          + 空间成员 +
          +添加
          +
          + + +
          + +
          +
          +
          + +
          + +
          + 管理员 +
          +
          +
          + +
          +
          + + + +
          +
            + +
          +
          +
          取消
          +
          完成
          +
          +
          +
          + +
          +
          + + + +
          +
          +
          项目
          +
          + +
          +
          +
          +
          + + + diff --git a/web/pages/list.html b/web/pages/list.html new file mode 100644 index 0000000..4b1752b --- /dev/null +++ b/web/pages/list.html @@ -0,0 +1,44 @@ + + + + + 树组件 + + + +
          + + + + \ No newline at end of file diff --git a/web/pages/login.html b/web/pages/login.html new file mode 100644 index 0000000..cd3ab66 --- /dev/null +++ b/web/pages/login.html @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/web/pages/modifyname-pop.html b/web/pages/modifyname-pop.html new file mode 100644 index 0000000..5171dc9 --- /dev/null +++ b/web/pages/modifyname-pop.html @@ -0,0 +1,15 @@ + +
          +
          +

          看板名称

          + +
          + +
          + +
          +
          +
          取消
          +
          确定
          +
          +
          \ No newline at end of file diff --git a/web/pages/newkanban.html b/web/pages/newkanban.html new file mode 100644 index 0000000..c5cf4d6 --- /dev/null +++ b/web/pages/newkanban.html @@ -0,0 +1,27 @@ +
          +
          +

          新建看板

          + +
          + +
          +
          看板名称
          + +
          +
          +
          添加至
          +
          +
          我的看板
          +
          项目空间
          +
          +
          +
          + + +
          + +
          +
          取消
          +
          确定
          +
          +
          diff --git a/web/pages/newwenjian.html b/web/pages/newwenjian.html new file mode 100644 index 0000000..66c0c07 --- /dev/null +++ b/web/pages/newwenjian.html @@ -0,0 +1,29 @@ +
          +
          +

          新建文件夹

          + +
          + +
          +
          文件夹名称
          + +
          + +
          +
          添加至
          +
          +
          我的看板
          +
          项目空间
          +
          +
          + +
          + + +
          + +
          +
          取消
          +
          确定
          +
          +
          \ No newline at end of file diff --git a/web/pages/projectadmin.html b/web/pages/projectadmin.html new file mode 100644 index 0000000..2da6844 --- /dev/null +++ b/web/pages/projectadmin.html @@ -0,0 +1,124 @@ + + + + + + + +
          +
          +
          + 角色是一系列功能操作的权限包,通过创建自定义角色,并赋予指定成员,能够实现不同成员间的操作权限区分。 +
          +
          +
          +
          + + + +
          + +
          +
          +
          系统角色 +
          +
          + +
          + +
          +
          项目内角色 +
          +
          + +
          +
          + +
          + +
          +
          +
          +

          xxx

          +
          + 最近更新:2021-05-07 13:57:30 + +
          +
          + +
          + +
          + +
          +
          + + + +
          +
          +
          + + + + + + + + + + diff --git a/web/pages/projectinfo.html b/web/pages/projectinfo.html new file mode 100644 index 0000000..e0a0d48 --- /dev/null +++ b/web/pages/projectinfo.html @@ -0,0 +1,205 @@ + +
          +
          + + + + +
          + +
          +
          + +
          + + +
          + +
          +
          + +
          +
          + +
          +
          +
          +

          历史数据导入

          +
          +
          + +
          +
          +
          +

          适用于快速导入TB级历史数据

          +
          +
          + +
          +
          + +
          +
          +
          +

          SDK配置

          +
          + + + +
          +
          + +

          每隔 30 秒或未推送条数达到 30 条时开始推送

          +

          每隔 秒或未推送条数达到 条时开始推送

          + +
          +
          + +
          + +
          +
          + +
          +
          +
          +

          用户识别体系

          +
          +
          + +
          +
          +
          +

          已选属性(1/68)

          + +
          + +
          + +
          +
          + +
          +
          +
          + +
          +
          +
          +

          IP白名单

          +
          + + + +
          +
          +

          多个IP间请用","分割,若为空则不做ip限制,配置修改后10分钟生效。

          + +
          + +
          + +
          +
          + +
          +
          +
          + +
          +
          + +
          +
          +
          +

          时区管理

          +
          +
          + +
          +
          +
          +

          以配置时区

          + +
          +
          + 当前时间 +
          +
          + UTC-12:00 +
          +
          + UTC-12:00 +
          +
          + +
          +
          + +
          + + +
          +
          + +
          + +
          + + + + diff --git a/web/pages/savedbaobiao.html b/web/pages/savedbaobiao.html new file mode 100644 index 0000000..db70a12 --- /dev/null +++ b/web/pages/savedbaobiao.html @@ -0,0 +1,45 @@ + +
          +
          +
          已存报表
          + +
          +
          + +
          + +
          +
          + + +
          + +
          +
          + + + +
          +
          +
          报表管理
          +
          +
          + + diff --git a/web/pages/savereport.html b/web/pages/savereport.html new file mode 100644 index 0000000..35ca142 --- /dev/null +++ b/web/pages/savereport.html @@ -0,0 +1,25 @@ + +
          +
          +
          保存报表
          +
          +
          + +
          + +
          +
          + +
          + +
          + +
          +
          +
          +
          +
          取 消
          +
          确 定
          +
          +
          +
          \ No newline at end of file diff --git a/web/pages/screen.html b/web/pages/screen.html new file mode 100644 index 0000000..b76b859 --- /dev/null +++ b/web/pages/screen.html @@ -0,0 +1,58 @@ +
          +
          +
          +
          +
          +
          + +
          +
          + + + +
          +
          +
          清 空
          +
          计 算
          +
          +
          +
          + +
          +
          +
          条件 +
          +
          + +
          + + \ No newline at end of file diff --git a/web/pages/search.html b/web/pages/search.html new file mode 100644 index 0000000..43b2783 --- /dev/null +++ b/web/pages/search.html @@ -0,0 +1,59 @@ +
          +
          +
          +
          + + 账户ID +
          + + + +
          + + +
          + + + +
          +
          搜 索
          +
          +
          + + +

          暂无数据

          + +
          +
          +
          + 查看用户列表(77777) +
          +
          +
          + + + + diff --git a/web/pages/setgrouping.html b/web/pages/setgrouping.html new file mode 100644 index 0000000..0e98a6e --- /dev/null +++ b/web/pages/setgrouping.html @@ -0,0 +1,39 @@ + +
          +
          +
          + + +
          +
          +
          +
          设置分组
          +
          + +
          +
          + +
          + +
          +
          + \ No newline at end of file diff --git a/web/pages/timeadmin.html b/web/pages/timeadmin.html new file mode 100644 index 0000000..5a68c27 --- /dev/null +++ b/web/pages/timeadmin.html @@ -0,0 +1,85 @@ + +
          +
          +
          时区管理
          +
          +
          + 时区偏移属性: + +
          +

          所选属性为事件时间与UTC时间的偏移小时数。

          +

          如用户在UTC+08:00时区(北京时间),则该属性值为8

          + +
          + 项目展示时区: + + + 默认:UTC-06:00 +
          +

          项目展示时区是项目成员在分析中可配置的时区包。您需要为项目设置默认时区,它将作为项目时区及成员使用的初始时区

          +
          +
          +
          取消
          +
          确定
          +
          +
          + + +
          +
          +
          案例说明
          +
          + ①用户在巴黎00:00(事件时间)进行登录,其所在时区为UTC+01:00(事件时区)。则可将时区偏移量“1”赋值给数值型自定义属性,并选择该属性作为【时区偏移属性】(若使用客户端SDK,则选择预置属性默认时区偏移(#zone_ offset)) +
          +
          + ②分析师希望以北京时间UTC+08:00(展示时间)查看项目数据,可将【系统展示时区】设置为UTC+08:00(展示时区),此时上述用户产生登录行为的事件时间,将偏移至07:00(展示时间)系统中将以该时间为依据进行计算和展示 +
          + +
          +
          计算方法
          +
          +
          +
          事件时间
          +
          00:00
          +
          +
          +
          +
          +
          +
          +
          (
          +
          +
          +
          展示时区
          +
          +08:00
          +
          +
          +
          -
          +
          +
          +
          事件时区
          +
          +01:00
          +
          +
          +
          )
          +
          +
          +
          =
          +
          +
          +
          展示时间
          +
          07:00
          +
          + +
          +
          + +
          +
          + + +
          \ No newline at end of file diff --git a/web/pages/toptab.html b/web/pages/toptab.html new file mode 100644 index 0000000..4ed4b94 --- /dev/null +++ b/web/pages/toptab.html @@ -0,0 +1,87 @@ + + \ No newline at end of file diff --git a/web/pages/updatepas.html b/web/pages/updatepas.html new file mode 100644 index 0000000..c80109b --- /dev/null +++ b/web/pages/updatepas.html @@ -0,0 +1,26 @@ + +
          +
          +
          重置密码设置
          + +
          + +
          +
          +
          +
          + +
          +
          + +
          +
          +
          + +
          +
          取 消
          +
          确 定
          +
          +
          + +
          \ No newline at end of file diff --git a/web/pages/useradmin.html b/web/pages/useradmin.html new file mode 100644 index 0000000..a1d560b --- /dev/null +++ b/web/pages/useradmin.html @@ -0,0 +1,52 @@ + + + + + + +
          + +
          +
          +
          +
          成员信息
          +
          成员组
          +
          + +
          +
          + + +
          +
          导入成员
          +
          添加已有成员
          +
          创建新成员
          +
          创建成员组
          +
          +
          +
          +
          +
          + +
          + +
          + + + + + \ No newline at end of file diff --git a/web/pages/useradminedit.html b/web/pages/useradminedit.html new file mode 100644 index 0000000..59bc072 --- /dev/null +++ b/web/pages/useradminedit.html @@ -0,0 +1,54 @@ + +
          + +
          +
          成员信息编辑
          + +
          + +
          +
          +
          + +
          + +
          + +
          +
          + +
          + +
          + +
          +
          + +
          + +
          +
          取 消
          +
          确 定
          +
          + +
          +
          + +
          + + + + diff --git a/web/pages/userattradmin.html b/web/pages/userattradmin.html new file mode 100644 index 0000000..51c9c8e --- /dev/null +++ b/web/pages/userattradmin.html @@ -0,0 +1,38 @@ + +
          + +
          +
          +
          用户属性管理
          + +
          +
          + + + +
          +
          + + 显示名配置 +
          + +
          + + 虚拟事件属性 +
          + +
          + +
          + +
          +
          +
          + +
          + +
          + + \ No newline at end of file diff --git a/web/pages/usersbtx.html b/web/pages/usersbtx.html new file mode 100644 index 0000000..04c9df6 --- /dev/null +++ b/web/pages/usersbtx.html @@ -0,0 +1,23 @@ + +
          +
          +
          用户识别体系
          + +
          + +
          +
          +

          TA系统默认以 TA用户ID 作为用户识别字段,打开该开关后,可将已存在的事件属性或用户属性添加至可选的用户识别列表中,如:设备ID、账号ID、角色ID、平台ID等,后续可在留存分析、漏斗分析、分布分析使用列表中任一用户识别字段进行关联计算

          +
          +
          + +
          + + +
          +
          取 消
          +
          确 定
          +
          + +
          + diff --git a/web/pages/yidong-pop.html b/web/pages/yidong-pop.html new file mode 100644 index 0000000..53b2085 --- /dev/null +++ b/web/pages/yidong-pop.html @@ -0,0 +1,22 @@ + +
          +
          +

          移动至

          + +
          + +
          +
          +
          我的看板
          +
          项目空间
          +
          +
          +
          + + +
          +
          + +
          确定
          +
          +
          \ No newline at end of file diff --git a/web/src/aaa.js b/web/src/aaa.js new file mode 100644 index 0000000..592ea8b --- /dev/null +++ b/web/src/aaa.js @@ -0,0 +1,12 @@ + +layui.define(['jquery'], function(exports){ + var $ = layui.jquery; + var obj = { + open:function(){ + layer.msg('修改成功'); + } + }; + //输出接口 + exports('common', obj); +}); + diff --git a/web/src/comboTreePlugin.js b/web/src/comboTreePlugin.js new file mode 100644 index 0000000..7a91848 --- /dev/null +++ b/web/src/comboTreePlugin.js @@ -0,0 +1,438 @@ +/*! + * jQuery ComboTree Plugin + * Author: Erhan FIRAT + * Mail: erhanfirat@gmail.com + * Licensed under the MIT license + * Version: 1.1 + */ + + +;(function ( $, window, document, undefined ) { + + // Create the defaults once + var comboTreePlugin = 'comboTree', + defaults = { + source: [], + isMultiple: false + }; + + // The actual plugin constructor + function ComboTree( element, options ) { + this.elemInput = element; + this._elemInput = $(element); + + this.options = $.extend( {}, defaults, options) ; + + this._defaults = defaults; + this._name = comboTreePlugin; + + this.init(); + } + + ComboTree.prototype.init = function () { + // Setting Doms + this.comboTreeId = 'comboTree' + Math.floor(Math.random() * 999999); + + this._elemInput.addClass('comboTreeInputBox'); + + if (this._elemInput.attr('id') === undefined) + this._elemInput.attr('id', this.comboTreeId + 'Input'); + this.elemInputId = this._elemInput.attr('id'); + + this._elemInput.wrap('
          '); + this._elemInput.wrap('
          '); + this._elemWrapper = $('#' + this.comboTreeId + 'Wrapper'); + + this._elemArrowBtn = $(''); + this._elemInput.after(this._elemArrowBtn); + this._elemWrapper.append('
          '); + + // DORP DOWN AREA + this._elemDropDownContainer = $('#' + this.comboTreeId + 'DropDownContainer'); + this._elemDropDownContainer.html(this.createSourceHTML()); + + this._elemItems = this._elemDropDownContainer.find('li'); + this._elemItemsTitle = this._elemDropDownContainer.find('span.comboTreeItemTitle'); + + // VARIABLES + this._selectedItem = {}; + this._selectedItems = []; + + this.bindings(); + }; + + + + // ********************************* + // SOURCES CODES + // ********************************* + + ComboTree.prototype.removeSourceHTML = function () { + this._elemDropDownContainer.html(''); + }; + + ComboTree.prototype.createSourceHTML = function () { + var sourceHTML = ''; + if (this.options.isMultiple) + sourceHTML = this.createFilterHTMLForMultiSelect(); + sourceHTML += this.createSourceSubItemsHTML(this.options.source); + return sourceHTML; + }; + + ComboTree.prototype.createFilterHTMLForMultiSelect = function (){ + return ''; + } + + ComboTree.prototype.createSourceSubItemsHTML = function (subItems) { + var subItemsHtml = '
            '; + for (var i=0; i '; + + if (isThereSubs) + itemHtml += ''; + + if (this.options.isMultiple) + itemHtml += '' + sourceItem.name + ''; + else + itemHtml += '' + sourceItem.name + ''; + + if (isThereSubs) + itemHtml += this.createSourceSubItemsHTML(sourceItem.children); + + itemHtml += ''; + return itemHtml; + }; + + + // BINDINGS + // ***************************** + ComboTree.prototype.bindings = function () { + var _this = this; + + this._elemArrowBtn.on('click', function(e){ + e.stopPropagation(); + _this.toggleDropDown(); + }); + this._elemInput.on('click', function(e){ + e.stopPropagation(); + if (!_this._elemDropDownContainer.is(':visible')) + _this.toggleDropDown(); + }); + this._elemItems.on('click', function(e){ + e.stopPropagation(); + if ($(this).hasClass('ComboTreeItemParent')){ + _this.toggleSelectionTree(this); + } + }); + this._elemItemsTitle.on('click', function(e){ + e.stopPropagation(); + if (_this.options.isMultiple) + _this.multiItemClick(this); + else + _this.singleItemClick(this); + }); + this._elemItemsTitle.on("mousemove", function (e) { + e.stopPropagation(); + _this.dropDownMenuHover(this); + }); + + // KEY BINDINGS + this._elemInput.on('keyup', function(e) { + e.stopPropagation(); + + switch (e.keyCode) { + case 27: + _this.closeDropDownMenu(); break; + case 13: + case 39: case 37: case 40: case 38: + e.preventDefault(); + break; + default: + if (!_this.options.isMultiple) + _this.filterDropDownMenu(); + break; + } + }); + if (_this.options.isMultiple) { + $("#" + _this.comboTreeId + "MultiFilter").on('keyup', function(e) { + e.stopPropagation(); + + switch (e.keyCode) { + case 27: + $(this).val(''); _this.filterDropDownMenu(); break; + default: + _this.filterDropDownMenu(); + break; + } + }); + } + + this._elemInput.on('keydown', function(e) { + e.stopPropagation(); + + switch (e.keyCode) { + case 9: + _this.closeDropDownMenu(); break; + case 40: case 38: + e.preventDefault(); + _this.dropDownInputKeyControl(e.keyCode - 39); break; + case 37: case 39: + e.preventDefault(); + _this.dropDownInputKeyToggleTreeControl(e.keyCode - 38); + break; + case 13: + if (_this.options.isMultiple) + _this.multiItemClick(_this._elemHoveredItem); + else + _this.singleItemClick(_this._elemHoveredItem); + e.preventDefault(); + break; + default: + if (_this.options.isMultiple) + e.preventDefault(); + } + }); + // ON FOCUS OUT CLOSE DROPDOWN + $(document).on('mouseup.' + _this.comboTreeId, function (e){ + if (!_this._elemWrapper.is(e.target) && _this._elemWrapper.has(e.target).length === 0 && _this._elemDropDownContainer.is(':visible')) + _this.closeDropDownMenu(); + }); + }; + + + + + // EVENTS HERE + // **************************** + + // DropDown Menu Open/Close + ComboTree.prototype.toggleDropDown = function () { + this._elemDropDownContainer.slideToggle(50); + this._elemInput.focus(); + }; + ComboTree.prototype.closeDropDownMenu = function () { + this._elemDropDownContainer.slideUp(50); + }; + // Selection Tree Open/Close + ComboTree.prototype.toggleSelectionTree = function (item, direction) { + var subMenu = $(item).children('ul')[0]; + if (direction === undefined){ + if ($(subMenu).is(':visible')) + $(item).children('span.comboTreeParentPlus').html("+"); + else + $(item).children('span.comboTreeParentPlus').html("−"); + + $(subMenu).slideToggle(50); + } + else if (direction == 1 && !$(subMenu).is(':visible')){ + $(item).children('span.comboTreeParentPlus').html("−"); + $(subMenu).slideDown(50); + } + else if (direction == -1){ + if ($(subMenu).is(':visible')){ + $(item).children('span.comboTreeParentPlus').html("+"); + $(subMenu).slideUp(50); + } + else { + this.dropDownMenuHoverToParentItem(item); + } + } + + }; + + + // SELECTION FUNCTIONS + // ***************************** + ComboTree.prototype.singleItemClick = function (ctItem) { + this._selectedItem = { + id: $(ctItem).attr("data-id"), + title: $(ctItem).text() + }; + + this.refreshInputVal(); + this.closeDropDownMenu(); + }; + ComboTree.prototype.multiItemClick = function (ctItem) { + this._selectedItem = { + id: $(ctItem).attr("data-id"), + title: $(ctItem).text() + }; + + var index = this.isItemInArray(this._selectedItem, this._selectedItems); + if (index){ + this._selectedItems.splice(parseInt(index), 1); + $(ctItem).find("input").prop('checked', false); + } + else { + this._selectedItems.push(this._selectedItem); + $(ctItem).find("input").prop('checked', true); + } + + this.refreshInputVal(); + }; + + ComboTree.prototype.isItemInArray = function (item, arr) { + for (var i=0; i0){ + var tmpArr = []; + for (i=0; i0){ + var tmpArr = []; + for (i=0; i
          '), + (this.parentEl = + i.parentEl && e(i.parentEl).length + ? e(i.parentEl) + : e(this.parentEl)), + (this.container = e(i.template).appendTo(this.parentEl)), + 'object' == typeof i.locale && + ('string' == typeof i.locale.direction && + (this.locale.direction = i.locale.direction), + 'string' == typeof i.locale.format && + (this.locale.format = i.locale.format), + 'string' == typeof i.locale.separator && + (this.locale.separator = i.locale.separator), + 'object' == typeof i.locale.daysOfWeek && + (this.locale.daysOfWeek = i.locale.daysOfWeek.slice()), + 'object' == typeof i.locale.monthNames && + (this.locale.monthNames = i.locale.monthNames.slice()), + 'number' == typeof i.locale.firstDay && + (this.locale.firstDay = i.locale.firstDay), + 'string' == typeof i.locale.applyLabel && + (this.locale.applyLabel = i.locale.applyLabel), + 'string' == typeof i.locale.cancelLabel && + (this.locale.cancelLabel = i.locale.cancelLabel), + 'string' == typeof i.locale.weekLabel && + (this.locale.weekLabel = i.locale.weekLabel), + 'string' == typeof i.locale.customRangeLabel)) + ) { + ;(f = document.createElement('textarea')).innerHTML = + i.locale.customRangeLabel + var n = f.value + this.locale.customRangeLabel = n + } + if ( + (this.container.addClass(this.locale.direction), + 'string' == typeof i.startDate && + (this.startDate = t(i.startDate, this.locale.format)), + 'string' == typeof i.endDate && + (this.endDate = t(i.endDate, this.locale.format)), + 'string' == typeof i.minDate && + (this.minDate = t(i.minDate, this.locale.format)), + 'string' == typeof i.maxDate && + (this.maxDate = t(i.maxDate, this.locale.format)), + 'object' == typeof i.startDate && (this.startDate = t(i.startDate)), + 'object' == typeof i.endDate && (this.endDate = t(i.endDate)), + 'object' == typeof i.minDate && (this.minDate = t(i.minDate)), + 'object' == typeof i.maxDate && (this.maxDate = t(i.maxDate)), + this.minDate && + this.startDate.isBefore(this.minDate) && + (this.startDate = this.minDate.clone()), + this.maxDate && + this.endDate.isAfter(this.maxDate) && + (this.endDate = this.maxDate.clone()), + 'string' == typeof i.applyButtonClasses && + (this.applyButtonClasses = i.applyButtonClasses), + 'string' == typeof i.applyClass && + (this.applyButtonClasses = i.applyClass), + 'string' == typeof i.cancelButtonClasses && + (this.cancelButtonClasses = i.cancelButtonClasses), + 'string' == typeof i.cancelClass && + (this.cancelButtonClasses = i.cancelClass), + 'object' == typeof i.maxSpan && (this.maxSpan = i.maxSpan), + 'object' == typeof i.dateLimit && (this.maxSpan = i.dateLimit), + 'string' == typeof i.opens && (this.opens = i.opens), + 'string' == typeof i.drops && (this.drops = i.drops), + 'boolean' == typeof i.showWeekNumbers && + (this.showWeekNumbers = i.showWeekNumbers), + 'boolean' == typeof i.showISOWeekNumbers && + (this.showISOWeekNumbers = i.showISOWeekNumbers), + 'string' == typeof i.buttonClasses && + (this.buttonClasses = i.buttonClasses), + 'object' == typeof i.buttonClasses && + (this.buttonClasses = i.buttonClasses.join(' ')), + 'boolean' == typeof i.showDropdowns && + (this.showDropdowns = i.showDropdowns), + 'number' == typeof i.minYear && (this.minYear = i.minYear), + 'number' == typeof i.maxYear && (this.maxYear = i.maxYear), + 'boolean' == typeof i.showCustomRangeLabel && + (this.showCustomRangeLabel = i.showCustomRangeLabel), + 'boolean' == typeof i.singleDatePicker && + ((this.singleDatePicker = i.singleDatePicker), + this.singleDatePicker && + (this.endDate = this.startDate.clone())), + 'boolean' == typeof i.timePicker && + (this.timePicker = i.timePicker), + 'boolean' == typeof i.timePickerSeconds && + (this.timePickerSeconds = i.timePickerSeconds), + 'number' == typeof i.timePickerIncrement && + (this.timePickerIncrement = i.timePickerIncrement), + 'boolean' == typeof i.timePicker24Hour && + (this.timePicker24Hour = i.timePicker24Hour), + 'boolean' == typeof i.autoApply && (this.autoApply = i.autoApply), + 'boolean' == typeof i.autoUpdateInput && + (this.autoUpdateInput = i.autoUpdateInput), + 'boolean' == typeof i.linkedCalendars && + (this.linkedCalendars = i.linkedCalendars), + 'function' == typeof i.isInvalidDate && + (this.isInvalidDate = i.isInvalidDate), + 'function' == typeof i.isCustomDate && + (this.isCustomDate = i.isCustomDate), + 'boolean' == typeof i.alwaysShowCalendars && + (this.alwaysShowCalendars = i.alwaysShowCalendars), + 0 != this.locale.firstDay) + ) + for (var r = this.locale.firstDay; r > 0; ) + this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()), r-- + var o, l, h + if ( + void 0 === i.startDate && + void 0 === i.endDate && + e(this.element).is(':text') + ) { + var c = e(this.element).val(), + d = c.split(this.locale.separator) + ;(o = l = null), + 2 == d.length + ? ((o = t(d[0], this.locale.format)), + (l = t(d[1], this.locale.format))) + : this.singleDatePicker && + '' !== c && + ((o = t(c, this.locale.format)), + (l = t(c, this.locale.format))), + null !== o && + null !== l && + (this.setStartDate(o), this.setEndDate(l)) + } + if ('object' == typeof i.ranges) { + // console.log(i.ranges) + for (h in i.ranges) { + ;(o = + 'string' == typeof i.ranges[h][0] + ? t(i.ranges[h][0], this.locale.format) + : t(i.ranges[h][0])), + (l = + 'string' == typeof i.ranges[h][1] + ? t(i.ranges[h][1], this.locale.format) + : t(i.ranges[h][1])), + this.minDate && + o.isBefore(this.minDate) && + (o = this.minDate.clone()) + var m = this.maxDate + if ( + (this.maxSpan && + m && + o.clone().add(this.maxSpan).isAfter(m) && + (m = o.clone().add(this.maxSpan)), + m && l.isAfter(m) && (l = m.clone()), + !( + (this.minDate && + l.isBefore( + this.minDate, + this.timepicker ? 'minute' : 'day' + )) || + (m && o.isAfter(m, this.timepicker ? 'minute' : 'day')) + )) + ) { + var f + ;(f = document.createElement('textarea')).innerHTML = h + n = f.value + this.ranges[n] = [o, l] + // console.log(o , l) + } + } + var p = '
            ' + for (h in this.ranges) + p += '
          • ' + h + '
          • ' + this.showCustomRangeLabel && + (p += + '
          • ' + + this.locale.customRangeLabel + + '
          • '), + (p += '
          '), + this.container.find('.ranges').prepend(p) + } + 'function' == typeof s && (this.callback = s), + this.timePicker || + ((this.startDate = this.startDate.startOf('day')), + (this.endDate = this.endDate.endOf('day')), + this.container.find('.calendar-time').hide()), + this.timePicker && this.autoApply && (this.autoApply = !1), + this.autoApply && this.container.addClass('auto-apply'), + 'object' == typeof i.ranges && + this.container.addClass('show-ranges'), + this.singleDatePicker && + (this.container.addClass('single'), + this.container.find('.drp-calendar.left').addClass('single'), + this.container.find('.drp-calendar.left').show(), + this.container.find('.drp-calendar.right').hide(), + this.timePicker || this.container.addClass('auto-apply')), + ((void 0 === i.ranges && !this.singleDatePicker) || + this.alwaysShowCalendars) && + this.container.addClass('show-calendar'), + this.container.addClass('opens' + this.opens), + this.container + .find('.applyBtn, .cancelBtn') + .addClass(this.buttonClasses), + this.applyButtonClasses.length && + this.container + .find('.applyBtn') + .addClass(this.applyButtonClasses), + this.cancelButtonClasses.length && + this.container + .find('.cancelBtn') + .addClass(this.cancelButtonClasses), + this.container.find('.applyBtn').html(this.locale.applyLabel), + this.container.find('.cancelBtn').html(this.locale.cancelLabel), + this.container + .find('.drp-calendar') + .on( + 'click.daterangepicker', + '.prev', + e.proxy(this.clickPrev, this) + ) + .on( + 'click.daterangepicker', + '.next', + e.proxy(this.clickNext, this) + ) + .on( + 'mousedown.daterangepicker', + 'td.available', + e.proxy(this.clickDate, this) + ) + .on( + 'mouseenter.daterangepicker', + 'td.available', + e.proxy(this.hoverDate, this) + ) + .on( + 'change.daterangepicker', + 'select.yearselect', + e.proxy(this.monthOrYearChanged, this) + ) + .on( + 'change.daterangepicker', + 'select.monthselect', + e.proxy(this.monthOrYearChanged, this) + ) + .on( + 'change.daterangepicker', + 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', + e.proxy(this.timeChanged, this) + ), + this.container + .find('.ranges') + .on( + 'click.daterangepicker', + 'li', + e.proxy(this.clickRange, this) + ), + this.container + .find('.drp-buttons') + .on( + 'click.daterangepicker', + 'button.applyBtn', + e.proxy(this.clickApply, this) + ) + .on( + 'click.daterangepicker', + 'button.cancelBtn', + e.proxy(this.clickCancel, this) + ), + this.element.is('input') || this.element.is('button') + ? this.element.on({ + 'click.daterangepicker': e.proxy(this.show, this), + 'focus.daterangepicker': e.proxy(this.show, this), + 'keyup.daterangepicker': e.proxy( + this.elementChanged, + this + ), + 'keydown.daterangepicker': e.proxy(this.keydown, this), + }) + : (this.element.on( + 'click.daterangepicker', + e.proxy(this.toggle, this) + ), + this.element.on( + 'keydown.daterangepicker', + e.proxy(this.toggle, this) + )), + this.updateElement() + } + return ( + (a.prototype = { + constructor: a, + setStartDate: function (e) { + 'string' == typeof e && + (this.startDate = t(e, this.locale.format)), + 'object' == typeof e && (this.startDate = t(e)), + this.timePicker || + (this.startDate = this.startDate.startOf('day')), + this.timePicker && + this.timePickerIncrement && + this.startDate.minute( + Math.round( + this.startDate.minute() / + this.timePickerIncrement + ) * this.timePickerIncrement + ), + this.minDate && + this.startDate.isBefore(this.minDate) && + ((this.startDate = this.minDate.clone()), + this.timePicker && + this.timePickerIncrement && + this.startDate.minute( + Math.round( + this.startDate.minute() / + this.timePickerIncrement + ) * this.timePickerIncrement + )), + this.maxDate && + this.startDate.isAfter(this.maxDate) && + ((this.startDate = this.maxDate.clone()), + this.timePicker && + this.timePickerIncrement && + this.startDate.minute( + Math.floor( + this.startDate.minute() / + this.timePickerIncrement + ) * this.timePickerIncrement + )), + this.isShowing || this.updateElement(), + this.updateMonthsInView() + }, + setEndDate: function (e) { + 'string' == typeof e && + (this.endDate = t(e, this.locale.format)), + 'object' == typeof e && (this.endDate = t(e)), + this.timePicker || + (this.endDate = this.endDate.endOf('day')), + this.timePicker && + this.timePickerIncrement && + this.endDate.minute( + Math.round( + this.endDate.minute() / this.timePickerIncrement + ) * this.timePickerIncrement + ), + this.endDate.isBefore(this.startDate) && + (this.endDate = this.startDate.clone()), + this.maxDate && + this.endDate.isAfter(this.maxDate) && + (this.endDate = this.maxDate.clone()), + this.maxSpan && + this.startDate + .clone() + .add(this.maxSpan) + .isBefore(this.endDate) && + (this.endDate = this.startDate + .clone() + .add(this.maxSpan)), + (this.previousRightTime = this.endDate.clone()), + this.container + .find('.drp-selected') + .html( + this.startDate.format(this.locale.format) + + this.locale.separator + + this.endDate.format(this.locale.format) + ), + this.isShowing || this.updateElement(), + this.updateMonthsInView() + }, + isInvalidDate: function () { + return !1 + }, + isCustomDate: function () { + return !1 + }, + updateView: function () { + this.timePicker && + (this.renderTimePicker('left'), + this.renderTimePicker('right'), + this.endDate + ? this.container + .find('.right .calendar-time select') + .removeAttr('disabled') + .removeClass('disabled') + : this.container + .find('.right .calendar-time select') + .attr('disabled', 'disabled') + .addClass('disabled')), + this.endDate && + this.container + .find('.drp-selected') + .html( + this.startDate.format(this.locale.format) + + this.locale.separator + + this.endDate.format(this.locale.format) + ), + this.updateMonthsInView(), + this.updateCalendars(), + this.updateFormInputs() + }, + updateMonthsInView: function () { + if (this.endDate) { + if ( + !this.singleDatePicker && + this.leftCalendar.month && + this.rightCalendar.month && + (this.startDate.format('YYYY-MM') == + this.leftCalendar.month.format('YYYY-MM') || + this.startDate.format('YYYY-MM') == + this.rightCalendar.month.format('YYYY-MM')) && + (this.endDate.format('YYYY-MM') == + this.leftCalendar.month.format('YYYY-MM') || + this.endDate.format('YYYY-MM') == + this.rightCalendar.month.format('YYYY-MM')) + ) + return + ;(this.leftCalendar.month = this.startDate.clone().date(2)), + this.linkedCalendars || + (this.endDate.month() == this.startDate.month() && + this.endDate.year() == this.startDate.year()) + ? (this.rightCalendar.month = this.startDate + .clone() + .date(2) + .add(1, 'month')) + : (this.rightCalendar.month = this.endDate + .clone() + .date(2)) + } else + this.leftCalendar.month.format('YYYY-MM') != + this.startDate.format('YYYY-MM') && + this.rightCalendar.month.format('YYYY-MM') != + this.startDate.format('YYYY-MM') && + ((this.leftCalendar.month = this.startDate + .clone() + .date(2)), + (this.rightCalendar.month = this.startDate + .clone() + .date(2) + .add(1, 'month'))) + this.maxDate && + this.linkedCalendars && + !this.singleDatePicker && + this.rightCalendar.month > this.maxDate && + ((this.rightCalendar.month = this.maxDate.clone().date(2)), + (this.leftCalendar.month = this.maxDate + .clone() + .date(2) + .subtract(1, 'month'))) + }, + updateCalendars: function () { + if (this.timePicker) { + var t, e, a, i + if (this.endDate) { + if ( + ((t = parseInt( + this.container.find('.left .hourselect').val(), + 10 + )), + (e = parseInt( + this.container + .find('.left .minuteselect') + .val(), + 10 + )), + isNaN(e) && + (e = parseInt( + this.container + .find('.left .minuteselect option:last') + .val(), + 10 + )), + (a = this.timePickerSeconds + ? parseInt( + this.container + .find('.left .secondselect') + .val(), + 10 + ) + : 0), + !this.timePicker24Hour) + ) + 'PM' === + (i = this.container + .find('.left .ampmselect') + .val()) && + t < 12 && + (t += 12), + 'AM' === i && 12 === t && (t = 0) + } else if ( + ((t = parseInt( + this.container.find('.right .hourselect').val(), + 10 + )), + (e = parseInt( + this.container.find('.right .minuteselect').val(), + 10 + )), + isNaN(e) && + (e = parseInt( + this.container + .find('.right .minuteselect option:last') + .val(), + 10 + )), + (a = this.timePickerSeconds + ? parseInt( + this.container + .find('.right .secondselect') + .val(), + 10 + ) + : 0), + !this.timePicker24Hour) + ) + 'PM' === + (i = this.container + .find('.right .ampmselect') + .val()) && + t < 12 && + (t += 12), + 'AM' === i && 12 === t && (t = 0) + this.leftCalendar.month.hour(t).minute(e).second(a), + this.rightCalendar.month.hour(t).minute(e).second(a) + } + this.renderCalendar('left'), + this.renderCalendar('right'), + this.container.find('.ranges li').removeClass('active'), + null != this.endDate && this.calculateChosenLabel() + }, + renderCalendar: function (a) { + var i, + s = (i = + 'left' == a + ? this.leftCalendar + : this.rightCalendar).month.month(), + n = i.month.year(), + r = i.month.hour(), + o = i.month.minute(), + l = i.month.second(), + h = t([n, s]).daysInMonth(), + c = t([n, s, 1]), + d = t([n, s, h]), + m = t(c).subtract(1, 'month').month(), + f = t(c).subtract(1, 'month').year(), + p = t([f, m]).daysInMonth(), + u = c.day() + ;((i = []).firstDay = c), (i.lastDay = d) + for (var D = 0; D < 6; D++) i[D] = [] + var g = p - u + this.locale.firstDay + 1 + g > p && (g -= 7), u == this.locale.firstDay && (g = p - 6) + for ( + var y = t([f, m, g, 12, o, l]), k = ((D = 0), 0), b = 0; + D < 42; + D++, k++, y = t(y).add(24, 'hour') + ) + D > 0 && k % 7 == 0 && ((k = 0), b++), + (i[b][k] = y.clone().hour(r).minute(o).second(l)), + y.hour(12), + this.minDate && + i[b][k].format('YYYY-MM-DD') == + this.minDate.format('YYYY-MM-DD') && + i[b][k].isBefore(this.minDate) && + 'left' == a && + (i[b][k] = this.minDate.clone()), + this.maxDate && + i[b][k].format('YYYY-MM-DD') == + this.maxDate.format('YYYY-MM-DD') && + i[b][k].isAfter(this.maxDate) && + 'right' == a && + (i[b][k] = this.maxDate.clone()) + 'left' == a + ? (this.leftCalendar.calendar = i) + : (this.rightCalendar.calendar = i) + var v = 'left' == a ? this.minDate : this.startDate, + C = this.maxDate, + Y = + ('left' == a ? this.startDate : this.endDate, + this.locale.direction, + '') + ;(Y += ''), + (Y += ''), + (this.showWeekNumbers || this.showISOWeekNumbers) && + (Y += ''), + (v && !v.isBefore(i.firstDay)) || + (this.linkedCalendars && 'left' != a) + ? (Y += '') + : (Y += '') + var w = + this.locale.monthNames[i[1][1].month()] + + i[1][1].format(' YYYY') + if (this.showDropdowns) { + for ( + var P = i[1][1].month(), + x = i[1][1].year(), + M = (C && C.year()) || this.maxYear, + I = (v && v.year()) || this.minYear, + S = x == I, + B = x == M, + A = '' + for ( + var N = '') + } + if ( + ((Y += ''), + (C && !C.isAfter(i.lastDay)) || + (this.linkedCalendars && + 'right' != a && + !this.singleDatePicker) + ? (Y += '') + : (Y += + ''), + (Y += ''), + (Y += ''), + (this.showWeekNumbers || this.showISOWeekNumbers) && + (Y += + ''), + e.each(this.locale.daysOfWeek, function (t, e) { + Y += '' + }), + (Y += ''), + (Y += ''), + (Y += ''), + null == this.endDate && this.maxSpan) + ) { + var W = this.startDate + .clone() + .add(this.maxSpan) + .endOf('day') + ;(C && !W.isBefore(C)) || (C = W) + } + for (b = 0; b < 6; b++) { + ;(Y += ''), + this.showWeekNumbers + ? (Y += + '') + : this.showISOWeekNumbers && + (Y += + '') + for (k = 0; k < 7; k++) { + var O = [] + i[b][k].isSame(new Date(), 'day') && O.push('today'), + i[b][k].isoWeekday() > 5 && O.push('weekend'), + i[b][k].month() != i[1][1].month() && + O.push('off', 'ends'), + this.minDate && + i[b][k].isBefore(this.minDate, 'day') && + O.push('off', 'disabled'), + C && + i[b][k].isAfter(C, 'day') && + O.push('off', 'disabled'), + this.isInvalidDate(i[b][k]) && + O.push('off', 'disabled'), + i[b][k].format('YYYY-MM-DD') == + this.startDate.format('YYYY-MM-DD') && + O.push('active', 'start-date'), + null != this.endDate && + i[b][k].format('YYYY-MM-DD') == + this.endDate.format('YYYY-MM-DD') && + O.push('active', 'end-date'), + null != this.endDate && + i[b][k] > this.startDate && + i[b][k] < this.endDate && + O.push('in-range') + var H = this.isCustomDate(i[b][k]) + !1 !== H && + ('string' == typeof H + ? O.push(H) + : Array.prototype.push.apply(O, H)) + var j = '', + R = !1 + for (D = 0; D < O.length; D++) + (j += O[D] + ' '), 'disabled' == O[D] && (R = !0) + R || (j += 'available'), + (Y += + '') + } + Y += '' + } + ;(Y += ''), + (Y += '
          ' + w + '
          ' + + this.locale.weekLabel + + '' + e + '
          ' + + i[b][0].week() + + '' + + i[b][0].isoWeek() + + '' + + i[b][k].date() + + '
          '), + this.container + .find('.drp-calendar.' + a + ' .calendar-table') + .html(Y) + }, + renderTimePicker: function (t) { + if ('right' != t || this.endDate) { + var e, + a, + i, + s = this.maxDate + if ( + (!this.maxSpan || + (this.maxDate && + !this.startDate + .clone() + .add(this.maxSpan) + .isBefore(this.maxDate)) || + (s = this.startDate.clone().add(this.maxSpan)), + 'left' == t) + ) + (a = this.startDate.clone()), (i = this.minDate) + else if ('right' == t) { + ;(a = this.endDate.clone()), (i = this.startDate) + var n = this.container.find( + '.drp-calendar.right .calendar-time' + ) + if ( + '' != n.html() && + (a.hour( + isNaN(a.hour()) + ? n + .find('.hourselect option:selected') + .val() + : a.hour() + ), + a.minute( + isNaN(a.minute()) + ? n + .find( + '.minuteselect option:selected' + ) + .val() + : a.minute() + ), + a.second( + isNaN(a.second()) + ? n + .find( + '.secondselect option:selected' + ) + .val() + : a.second() + ), + !this.timePicker24Hour) + ) { + var r = n.find('.ampmselect option:selected').val() + 'PM' === r && + a.hour() < 12 && + a.hour(a.hour() + 12), + 'AM' === r && 12 === a.hour() && a.hour(0) + } + a.isBefore(this.startDate) && + (a = this.startDate.clone()), + s && a.isAfter(s) && (a = s.clone()) + } + e = ' '), + (e += ': '), this.timePickerSeconds)) { + e += ': ' + } + if (!this.timePicker24Hour) { + e += '') + } + this.container + .find('.drp-calendar.' + t + ' .calendar-time') + .html(e) + } + }, + updateFormInputs: function () { + this.singleDatePicker || + (this.endDate && + (this.startDate.isBefore(this.endDate) || + this.startDate.isSame(this.endDate))) + ? this.container + .find('button.applyBtn') + .removeAttr('disabled') + : this.container + .find('button.applyBtn') + .attr('disabled', 'disabled') + }, + move: function () { + var t, + a = { top: 0, left: 0 }, + i = e(window).width() + this.parentEl.is('body') || + ((a = { + top: + this.parentEl.offset().top - + this.parentEl.scrollTop(), + left: + this.parentEl.offset().left - + this.parentEl.scrollLeft(), + }), + (i = + this.parentEl[0].clientWidth + + this.parentEl.offset().left)), + (t = + 'up' == this.drops + ? this.element.offset().top - + this.container.outerHeight() - + a.top + : this.element.offset().top + + this.element.outerHeight() - + a.top), + this.container.css({ top: 0, left: 0, right: 'auto' }) + var s = this.container.outerWidth() + if ( + (this.container[ + 'up' == this.drops ? 'addClass' : 'removeClass' + ]('drop-up'), + 'left' == this.opens) + ) { + var n = + i - + this.element.offset().left - + this.element.outerWidth() + s + n > e(window).width() + ? this.container.css({ top: t, right: 'auto', left: 9 }) + : this.container.css({ top: t, right: n, left: 'auto' }) + } else if ('center' == this.opens) { + ;(r = + this.element.offset().left - + a.left + + this.element.outerWidth() / 2 - + s / 2) < 0 + ? this.container.css({ top: t, right: 'auto', left: 9 }) + : r + s > e(window).width() + ? this.container.css({ top: t, left: 'auto', right: 0 }) + : this.container.css({ top: t, left: r, right: 'auto' }) + } else { + var r + ;(r = this.element.offset().left - a.left) + s > + e(window).width() + ? this.container.css({ top: t, left: 'auto', right: 0 }) + : this.container.css({ top: t, left: r, right: 'auto' }) + } + }, + show: function (t) { + this.isShowing || + ((this._outsideClickProxy = e.proxy(function (t) { + this.outsideClick(t) + }, this)), + e(document) + .on( + 'mousedown.daterangepicker', + this._outsideClickProxy + ) + .on('touchend.daterangepicker', this._outsideClickProxy) + .on( + 'click.daterangepicker', + '[data-toggle=dropdown]', + this._outsideClickProxy + ) + .on('focusin.daterangepicker', this._outsideClickProxy), + e(window).on( + 'resize.daterangepicker', + e.proxy(function (t) { + this.move(t) + }, this) + ), + (this.oldStartDate = this.startDate.clone()), + (this.oldEndDate = this.endDate.clone()), + (this.previousRightTime = this.endDate.clone()), + this.updateView(), + this.container.show(), + this.move(), + this.element.trigger('show.daterangepicker', this), + (this.isShowing = !0)) + }, + hide: function (t) { + this.isShowing && + (this.endDate || + ((this.startDate = this.oldStartDate.clone()), + (this.endDate = this.oldEndDate.clone())), + (this.startDate.isSame(this.oldStartDate) && + this.endDate.isSame(this.oldEndDate)) || + this.callback( + this.startDate.clone(), + this.endDate.clone(), + this.chosenLabel + ), + this.updateElement(), + e(document).off('.daterangepicker'), + e(window).off('.daterangepicker'), + this.container.hide(), + this.element.trigger('hide.daterangepicker', this), + (this.isShowing = !1)) + }, + toggle: function (t) { + this.isShowing ? this.hide() : this.show() + }, + outsideClick: function (t) { + var a = e(t.target) + 'focusin' == t.type || + a.closest(this.element).length || + a.closest(this.container).length || + a.closest('.calendar-table').length || + (this.hide(), + this.element.trigger('outsideClick.daterangepicker', this)) + }, + showCalendars: function () { + this.container.addClass('show-calendar'), + this.move(), + this.element.trigger('showCalendar.daterangepicker', this) + }, + hideCalendars: function () { + this.container.removeClass('show-calendar'), + this.element.trigger('hideCalendar.daterangepicker', this) + }, + clickRange: function (t) { + var e = t.target.getAttribute('data-range-key') + if (((this.chosenLabel = e), e == this.locale.customRangeLabel)) + this.showCalendars() + else { + var a = this.ranges[e]; + (this.startDate = a[0]), + (this.endDate = a[1]), + this.timePicker || (this.startDate.startOf('day'), + this.endDate.endOf('day')), + this.alwaysShowCalendars || this.hideCalendars() + // this.clickApply() + this.updateView(); + } + }, + clickPrev: function (t) { + e(t.target).parents('.drp-calendar').hasClass('left') + ? (this.leftCalendar.month.subtract(1, 'month'), + this.linkedCalendars && + this.rightCalendar.month.subtract(1, 'month')) + : this.rightCalendar.month.subtract(1, 'month'), + this.updateCalendars() + }, + clickNext: function (t) { + e(t.target).parents('.drp-calendar').hasClass('left') + ? this.leftCalendar.month.add(1, 'month') + : (this.rightCalendar.month.add(1, 'month'), + this.linkedCalendars && + this.leftCalendar.month.add(1, 'month')), + this.updateCalendars() + }, + hoverDate: function (t) { + if (e(t.target).hasClass('available')) { + var a = e(t.target).attr('data-title'), + i = a.substr(1, 1), + s = a.substr(3, 1), + n = e(t.target) + .parents('.drp-calendar') + .hasClass('left') + ? this.leftCalendar.calendar[i][s] + : this.rightCalendar.calendar[i][s], + r = this.leftCalendar, + o = this.rightCalendar, + l = this.startDate + this.endDate || + this.container + .find('.drp-calendar tbody td') + .each(function (t, a) { + if (!e(a).hasClass('week')) { + var i = e(a).attr('data-title'), + s = i.substr(1, 1), + h = i.substr(3, 1), + c = e(a) + .parents('.drp-calendar') + .hasClass('left') + ? r.calendar[s][h] + : o.calendar[s][h] + ;(c.isAfter(l) && c.isBefore(n)) || + c.isSame(n, 'day') + ? e(a).addClass('in-range') + : e(a).removeClass('in-range') + } + }) + } + }, + clickDate: function (t) { + if (e(t.target).hasClass('available')) { + var a = e(t.target).attr('data-title'), + i = a.substr(1, 1), + s = a.substr(3, 1), + n = e(t.target) + .parents('.drp-calendar') + .hasClass('left') + ? this.leftCalendar.calendar[i][s] + : this.rightCalendar.calendar[i][s] + if (this.endDate || n.isBefore(this.startDate, 'day')) { + if (this.timePicker) { + var r = parseInt( + this.container.find('.left .hourselect').val(), + 10 + ) + if (!this.timePicker24Hour) + 'PM' === + (h = this.container + .find('.left .ampmselect') + .val()) && + r < 12 && + (r += 12), + 'AM' === h && 12 === r && (r = 0) + var o = parseInt( + this.container + .find('.left .minuteselect') + .val(), + 10 + ) + isNaN(o) && + (o = parseInt( + this.container + .find('.left .minuteselect option:last') + .val(), + 10 + )) + var l = this.timePickerSeconds + ? parseInt( + this.container + .find('.left .secondselect') + .val(), + 10 + ) + : 0 + n = n.clone().hour(r).minute(o).second(l) + } + ;(this.endDate = null), this.setStartDate(n.clone()) + } else if (!this.endDate && n.isBefore(this.startDate)) + this.setEndDate(this.startDate.clone()) + else { + if (this.timePicker) { + var h + r = parseInt( + this.container.find('.right .hourselect').val(), + 10 + ) + if (!this.timePicker24Hour) + 'PM' === + (h = this.container + .find('.right .ampmselect') + .val()) && + r < 12 && + (r += 12), + 'AM' === h && 12 === r && (r = 0) + o = parseInt( + this.container + .find('.right .minuteselect') + .val(), + 10 + ) + isNaN(o) && + (o = parseInt( + this.container + .find( + '.right .minuteselect option:last' + ) + .val(), + 10 + )) + l = this.timePickerSeconds + ? parseInt( + this.container + .find('.right .secondselect') + .val(), + 10 + ) + : 0 + n = n.clone().hour(r).minute(o).second(l) + } + this.setEndDate(n.clone()), + this.autoApply && + (this.calculateChosenLabel(), this.clickApply()) + } + this.singleDatePicker && + (this.setEndDate(this.startDate), + this.timePicker || this.clickApply()), + this.updateView(), + t.stopPropagation() + } + }, + calculateChosenLabel: function () { + var t = !0, + e = 0 + for (var a in this.ranges) { + if (this.timePicker) { + var i = this.timePickerSeconds + ? 'YYYY-MM-DD HH:mm:ss' + : 'YYYY-MM-DD HH:mm' + if ( + this.startDate.format(i) == + this.ranges[a][0].format(i) && + this.endDate.format(i) == + this.ranges[a][1].format(i) + ) { + ;(t = !1), + (this.chosenLabel = this.container + .find('.ranges li:eq(' + e + ')') + .addClass('active') + .attr('data-range-key')) + break + } + } else if ( + this.startDate.format('YYYY-MM-DD') == + this.ranges[a][0].format('YYYY-MM-DD') && + this.endDate.format('YYYY-MM-DD') == + this.ranges[a][1].format('YYYY-MM-DD') + ) { + ;(t = !1), + (this.chosenLabel = this.container + .find('.ranges li:eq(' + e + ')') + .addClass('active') + .attr('data-range-key')) + break + } + e++ + } + t && + (this.showCustomRangeLabel + ? (this.chosenLabel = this.container + .find('.ranges li:last') + .addClass('active') + .attr('data-range-key')) + : (this.chosenLabel = null), + this.showCalendars()) + }, + clickApply: function (t) { + this.hide(), this.element.trigger('apply.daterangepicker', this) + }, + clickCancel: function (t) { + ;(this.startDate = this.oldStartDate), + (this.endDate = this.oldEndDate), + this.hide(), + this.element.trigger('cancel.daterangepicker', this) + }, + monthOrYearChanged: function (t) { + var a = e(t.target).closest('.drp-calendar').hasClass('left'), + i = a ? 'left' : 'right', + s = this.container.find('.drp-calendar.' + i), + n = parseInt(s.find('.monthselect').val(), 10), + r = s.find('.yearselect').val() + a || + ((r < this.startDate.year() || + (r == this.startDate.year() && + n < this.startDate.month())) && + ((n = this.startDate.month()), + (r = this.startDate.year()))), + this.minDate && + (r < this.minDate.year() || + (r == this.minDate.year() && + n < this.minDate.month())) && + ((n = this.minDate.month()), (r = this.minDate.year())), + this.maxDate && + (r > this.maxDate.year() || + (r == this.maxDate.year() && + n > this.maxDate.month())) && + ((n = this.maxDate.month()), (r = this.maxDate.year())), + a + ? (this.leftCalendar.month.month(n).year(r), + this.linkedCalendars && + (this.rightCalendar.month = this.leftCalendar.month + .clone() + .add(1, 'month'))) + : (this.rightCalendar.month.month(n).year(r), + this.linkedCalendars && + (this.leftCalendar.month = this.rightCalendar.month + .clone() + .subtract(1, 'month'))), + this.updateCalendars() + }, + timeChanged: function (t) { + var a = e(t.target).closest('.drp-calendar'), + i = a.hasClass('left'), + s = parseInt(a.find('.hourselect').val(), 10), + n = parseInt(a.find('.minuteselect').val(), 10) + isNaN(n) && + (n = parseInt( + a.find('.minuteselect option:last').val(), + 10 + )) + var r = this.timePickerSeconds + ? parseInt(a.find('.secondselect').val(), 10) + : 0 + if (!this.timePicker24Hour) { + var o = a.find('.ampmselect').val() + 'PM' === o && s < 12 && (s += 12), + 'AM' === o && 12 === s && (s = 0) + } + if (i) { + var l = this.startDate.clone() + l.hour(s), + l.minute(n), + l.second(r), + this.setStartDate(l), + this.singleDatePicker + ? (this.endDate = this.startDate.clone()) + : this.endDate && + this.endDate.format('YYYY-MM-DD') == + l.format('YYYY-MM-DD') && + this.endDate.isBefore(l) && + this.setEndDate(l.clone()) + } else if (this.endDate) { + var h = this.endDate.clone() + h.hour(s), h.minute(n), h.second(r), this.setEndDate(h) + } + this.updateCalendars(), + this.updateFormInputs(), + this.renderTimePicker('left'), + this.renderTimePicker('right') + }, + elementChanged: function () { + if (this.element.is('input') && this.element.val().length) { + var e = this.element.val().split(this.locale.separator), + a = null, + i = null + 2 === e.length && + ((a = t(e[0], this.locale.format)), + (i = t(e[1], this.locale.format))), + (this.singleDatePicker || null === a || null === i) && + (i = a = t(this.element.val(), this.locale.format)), + a.isValid() && + i.isValid() && + (this.setStartDate(a), + this.setEndDate(i), + this.updateView()) + } + }, + keydown: function (t) { + ;(9 !== t.keyCode && 13 !== t.keyCode) || this.hide(), + 27 === t.keyCode && + (t.preventDefault(), t.stopPropagation(), this.hide()) + }, + updateElement: function () { + if (this.element.is('input') && this.autoUpdateInput) { + var t = this.startDate.format(this.locale.format) + this.singleDatePicker || + (t += + this.locale.separator + + this.endDate.format(this.locale.format)), + t !== this.element.val() && + this.element.val(t).trigger('change') + } + }, + remove: function () { + this.container.remove(), + this.element.off('.daterangepicker'), + this.element.removeData() + }, + }), + (e.fn.daterangepicker = function (t, i) { + var s = e.extend(!0, {}, e.fn.daterangepicker.defaultOptions, t) + return ( + this.each(function () { + var t = e(this) + t.data('daterangepicker') && + t.data('daterangepicker').remove(), + t.data('daterangepicker', new a(t, s, i)) + }), + this + ) + }), + a + ) +}) +//# sourceMappingURL=/sm/3a884fe0bdb97cb3a94b410e67cf38fdc248890d5581232077b3e6241e25cd21.map diff --git a/web/src/doT.js b/web/src/doT.js new file mode 100644 index 0000000..c61400a --- /dev/null +++ b/web/src/doT.js @@ -0,0 +1,144 @@ +// doT.js +// 2011-2014, Laura Doktorova, https://github.com/olado/doT +// Licensed under the MIT license. + +(function () { + "use strict"; + + var doT = { + name: "doT", + version: "1.1.1", + templateSettings: { + evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g, + interpolate: /\{\{=([\s\S]+?)\}\}/g, + encode: /\{\{!([\s\S]+?)\}\}/g, + use: /\{\{#([\s\S]+?)\}\}/g, + useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g, + define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g, + defineParams:/^\s*([\w$]+):([\s\S]+)/, + conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g, + iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g, + varname: "it", + strip: true, + append: true, + selfcontained: false, + doNotSkipEncoded: false + }, + template: undefined, //fn, compile template + compile: undefined, //fn, for express + log: true + }, _globals; + + doT.encodeHTMLSource = function(doNotSkipEncoded) { + var encodeHTMLRules = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "/": "/" }, + matchHTML = doNotSkipEncoded ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g; + return function(code) { + return code ? code.toString().replace(matchHTML, function(m) {return encodeHTMLRules[m] || m;}) : ""; + }; + }; + + _globals = (function(){ return this || (0,eval)("this"); }()); + + /* istanbul ignore else */ + if (typeof module !== "undefined" && module.exports) { + module.exports = doT; + } else if (typeof define === "function" && define.amd) { + define(function(){return doT;}); + } else { + _globals.doT = doT; + } + + var startend = { + append: { start: "'+(", end: ")+'", startencode: "'+encodeHTML(" }, + split: { start: "';out+=(", end: ");out+='", startencode: "';out+=encodeHTML(" } + }, skip = /$^/; + + function resolveDefs(c, block, def) { + return ((typeof block === "string") ? block : block.toString()) + .replace(c.define || skip, function(m, code, assign, value) { + if (code.indexOf("def.") === 0) { + code = code.substring(4); + } + if (!(code in def)) { + if (assign === ":") { + if (c.defineParams) value.replace(c.defineParams, function(m, param, v) { + def[code] = {arg: param, text: v}; + }); + if (!(code in def)) def[code]= value; + } else { + new Function("def", "def['"+code+"']=" + value)(def); + } + } + return ""; + }) + .replace(c.use || skip, function(m, code) { + if (c.useParams) code = code.replace(c.useParams, function(m, s, d, param) { + if (def[d] && def[d].arg && param) { + var rw = (d+":"+param).replace(/'|\\/g, "_"); + def.__exp = def.__exp || {}; + def.__exp[rw] = def[d].text.replace(new RegExp("(^|[^\\w$])" + def[d].arg + "([^\\w$])", "g"), "$1" + param + "$2"); + return s + "def.__exp['"+rw+"']"; + } + }); + var v = new Function("def", "return " + code)(def); + return v ? resolveDefs(c, v, def) : v; + }); + } + + function unescape(code) { + return code.replace(/\\('|\\)/g, "$1").replace(/[\r\t\n]/g, " "); + } + + doT.template = function(tmpl, c, def) { + c = c || doT.templateSettings; + var cse = c.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, + str = (c.use || c.define) ? resolveDefs(c, tmpl, def || {}) : tmpl; + + str = ("var out='" + (c.strip ? str.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ") + .replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""): str) + .replace(/'|\\/g, "\\$&") + .replace(c.interpolate || skip, function(m, code) { + return cse.start + unescape(code) + cse.end; + }) + .replace(c.encode || skip, function(m, code) { + needhtmlencode = true; + return cse.startencode + unescape(code) + cse.end; + }) + .replace(c.conditional || skip, function(m, elsecase, code) { + return elsecase ? + (code ? "';}else if(" + unescape(code) + "){out+='" : "';}else{out+='") : + (code ? "';if(" + unescape(code) + "){out+='" : "';}out+='"); + }) + .replace(c.iterate || skip, function(m, iterate, vname, iname) { + if (!iterate) return "';} } out+='"; + sid+=1; indv=iname || "i"+sid; iterate=unescape(iterate); + return "';var arr"+sid+"="+iterate+";if(arr"+sid+"){var "+vname+","+indv+"=-1,l"+sid+"=arr"+sid+".length-1;while("+indv+"=11),domSupported:"undefined"!=typeof document}}function i(t,e){"createCanvas"===t&&(vS=null),gS[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=lS.call(t);if("[object Array]"===i){if(!z(t)){e=[];for(var o=0,a=t.length;a>o;o++)e[o]=n(t[o])}}else if(sS[i]){if(!z(t)){var r=t.constructor;if(t.constructor.from)e=r.from(t);else{e=new r(t.length);for(var o=0,a=t.length;a>o;o++)e[o]=n(t[o])}}}else if(!rS[i]&&!z(t)&&!T(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]))}return e}function o(t,e,i){if(!S(e)||!S(t))return i?n(e):t;for(var a in e)if(e.hasOwnProperty(a)){var r=t[a],s=e[a];!S(s)||!S(r)||_(s)||_(r)||T(s)||T(r)||M(s)||M(r)||z(s)||z(r)?!i&&a in t||(t[a]=n(e[a],!0)):o(r,s,i)}return t}function a(t,e){for(var i=t[0],n=1,a=t.length;a>n;n++)i=o(i,t[n],e);return i}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function s(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function l(){return vS||(vS=mS().getContext("2d")),vS}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function h(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var o in n)n.hasOwnProperty(o)&&(t.prototype[o]=n[o]);t.prototype.constructor=t,t.superClass=e}function c(t,e,i){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,i)}function d(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===hS)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,o=t.length;o>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===fS)return t.map(e,i);for(var n=[],o=0,a=t.length;a>o;o++)n.push(e.call(i,t[o],o,t));return n}}function g(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===pS)return t.reduce(e,i,n);for(var o=0,a=t.length;a>o;o++)i=e.call(n,i,t[o],o,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===cS)return t.filter(e,i);for(var n=[],o=0,a=t.length;a>o;o++)e.call(i,t[o],o,t)&&n.push(t[o]);return n}}function v(t,e,i){if(t&&e)for(var n=0,o=t.length;o>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=dS.call(arguments,2);return function(){return t.apply(e,i.concat(dS.call(arguments)))}}function x(t){var e=dS.call(arguments,1);return function(){return t.apply(this,e.concat(dS.call(arguments)))}}function _(t){return"[object Array]"===lS.call(t)}function w(t){return"function"==typeof t}function b(t){return"[object String]"===lS.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function M(t){return!!rS[lS.call(t)]}function I(t){return!!sS[lS.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function A(t){return t!==t}function D(){for(var t=0,e=arguments.length;e>t;t++)if(null!=arguments[t])return arguments[t]}function C(t,e){return null!=t?t:e}function L(t,e,i){return null!=t?t:null!=e?e:i}function k(){return Function.call.apply(dS,arguments)}function P(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function O(t,e){if(!t)throw new Error(e)}function E(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function N(t){t[yS]=!0}function z(t){return t[yS]}function R(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=_(t);this.data={};var n=this;t instanceof R?t.each(e):t&&f(t,e)}function B(t){return new R(t)}function V(t,e){for(var i=new t.constructor(t.length+e.length),n=0;nd;d++){var p=1<r;r++)for(var s=0;8>s;s++)null==a[s]&&(a[s]=0),a[s]+=((r+s)%2?-1:1)*de(i,7,0===r?1:0,1<a;a++){var r=document.createElement("div"),s=r.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[u]+":0",n[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(r),i.push(r)}return i}function ve(t,e,i){for(var n=i?"invTrans":"trans",o=e[n],a=e.srcCoords,r=!0,s=[],l=[],u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,f=h.top;s.push(d,f),r=r&&a&&d===a[c]&&f===a[c+1],l.push(t[u].offsetLeft,t[u].offsetTop)}return r&&o?o:(e.srcCoords=s,e[n]=i?fe(l,s):fe(s,l))}function ye(t){return"CANVAS"===t.nodeName.toUpperCase()}function xe(t,e,i,n){return i=i||{},n||!aS.canvasSupported?_e(t,e,i):aS.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):_e(t,e,i),i}function _e(t,e,i){if(aS.domSupported&&t.getBoundingClientRect){var n=e.clientX,o=e.clientY;if(ye(t)){var a=t.getBoundingClientRect();return i.zrX=n-a.left,void(i.zrY=o-a.top)}if(ge(OS,t,n,o))return i.zrX=OS[0],void(i.zrY=OS[1])}i.zrX=i.zrY=0}function we(t){return t||window.event}function be(t,e,i){if(e=we(e),null!=e.zrX)return e;var n=e.type,o=n&&n.indexOf("touch")>=0;if(o){var a="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];a&&xe(t,a,e,i)}else xe(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var r=e.button;return null==e.which&&void 0!==r&&PS.test(e.type)&&(e.which=1&r?1:2&r?3:4&r?2:0),e}function Se(t,e,i,n){kS?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)}function Me(t,e,i,n){kS?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)}function Ie(t){return 2===t.which||3===t.which}function Te(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Ae(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function De(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Ce}}function Ce(){ES(this.event)}function Le(){}function ke(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,o=t;o;){if(o.clipPath&&!o.clipPath.contain(e,i))return!1;o.silent&&(n=!0),o=o.parent}return n?RS:!0}return!1}function Pe(t,e,i){var n=t.painter;return 0>e||e>n.getWidth()||0>i||i>n.getHeight()}function Oe(){var t=new GS(6);return Ee(t),t}function Ee(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ne(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ze(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],r=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=a,t[3]=r,t[4]=s,t[5]=l,t}function Re(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Be(t,e,i){var n=e[0],o=e[2],a=e[4],r=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+r*u,t[1]=-n*u+r*h,t[2]=o*h+s*u,t[3]=-o*u+h*s,t[4]=h*a+u*l,t[5]=h*l-u*a,t}function Ve(t,e,i){var n=i[0],o=i[1];return t[0]=e[0]*n,t[1]=e[1]*o,t[2]=e[2]*n,t[3]=e[3]*o,t[4]=e[4]*n,t[5]=e[5]*o,t}function Ge(t,e){var i=e[0],n=e[2],o=e[4],a=e[1],r=e[3],s=e[5],l=i*r-a*n;return l?(l=1/l,t[0]=r*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-r*o)*l,t[5]=(a*o-i*s)*l,t):null}function Fe(t){var e=Oe();return Ne(e,t),e}function We(t){return t>HS||-HS>t}function He(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function Ze(t){return t=Math.round(t),0>t?0:t>255?255:t}function Ue(t){return t=Math.round(t),0>t?0:t>360?360:t}function Xe(t){return 0>t?0:t>1?1:t}function Ye(t){return Ze(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function je(t){return Xe(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function qe(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function Ke(t,e,i){return t+(e-t)*i}function $e(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function Je(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Qe(t,e){nM&&Je(nM,e),nM=iM.put(t,nM||e.slice())}function ti(t,e){if(t){e=e||[];var i=iM.get(t);if(i)return Je(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in eM)return Je(e,eM[n]),Qe(t,e),e;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===n.length){var r=n.substr(0,o),s=n.substr(o+1,a-(o+1)).split(","),l=1;switch(r){case"rgba":if(4!==s.length)return void $e(e,0,0,0,1);l=je(s.pop());case"rgb":return 3!==s.length?void $e(e,0,0,0,1):($e(e,Ye(s[0]),Ye(s[1]),Ye(s[2]),l),Qe(t,e),e);case"hsla":return 4!==s.length?void $e(e,0,0,0,1):(s[3]=je(s[3]),ei(s,e),Qe(t,e),e);case"hsl":return 3!==s.length?void $e(e,0,0,0,1):(ei(s,e),Qe(t,e),e);default:return}}$e(e,0,0,0,1)}else{if(4===n.length){var u=parseInt(n.substr(1),16);return u>=0&&4095>=u?($e(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),Qe(t,e),e):void $e(e,0,0,0,1)}if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&16777215>=u?($e(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),Qe(t,e),e):void $e(e,0,0,0,1)}}}}function ei(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=je(t[1]),o=je(t[2]),a=.5>=o?o*(n+1):o+n-o*n,r=2*o-a;return e=e||[],$e(e,Ze(255*qe(r,a,i+1/3)),Ze(255*qe(r,a,i)),Ze(255*qe(r,a,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ii(t){if(t){var e,i,n=t[0]/255,o=t[1]/255,a=t[2]/255,r=Math.min(n,o,a),s=Math.max(n,o,a),l=s-r,u=(s+r)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+r):l/(2-s-r);var h=((s-n)/6+l/2)/l,c=((s-o)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-c:o===s?e=1/3+h-d:a===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function ni(t,e){var i=ti(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return ui(i,4===i.length?"rgba":"rgb")}}function oi(t){var e=ti(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function ai(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),o=Math.floor(n),a=Math.ceil(n),r=e[o],s=e[a],l=n-o;return i[0]=Ze(Ke(r[0],s[0],l)),i[1]=Ze(Ke(r[1],s[1],l)),i[2]=Ze(Ke(r[2],s[2],l)),i[3]=Xe(Ke(r[3],s[3],l)),i}}function ri(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),o=Math.floor(n),a=Math.ceil(n),r=ti(e[o]),s=ti(e[a]),l=n-o,u=ui([Ze(Ke(r[0],s[0],l)),Ze(Ke(r[1],s[1],l)),Ze(Ke(r[2],s[2],l)),Xe(Ke(r[3],s[3],l))],"rgba");return i?{color:u,leftIndex:o,rightIndex:a,value:n}:u}}function si(t,e,i,n){return t=ti(t),t?(t=ii(t),null!=e&&(t[0]=Ue(e)),null!=i&&(t[1]=je(i)),null!=n&&(t[2]=je(n)),ui(ei(t),"rgba")):void 0}function li(t,e){return t=ti(t),t&&null!=e?(t[3]=Xe(e),ui(t,"rgba")):void 0}function ui(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function hi(t,e){return t[e]}function ci(t,e,i){t[e]=i}function di(t,e,i){return(e-t)*i+t}function fi(t,e,i){return i>.5?e:t}function pi(t,e,i,n,o){var a=t.length;if(1===o)for(var r=0;a>r;r++)n[r]=di(t[r],e[r],i);else for(var s=a&&t[0].length,r=0;a>r;r++)for(var l=0;s>l;l++)n[r][l]=di(t[r][l],e[r][l],i)}function gi(t,e,i){var n=t.length,o=e.length;if(n!==o){var a=n>o;if(a)t.length=o;else for(var r=n;o>r;r++)t.push(1===i?e[r]:sM.call(e[r]))}for(var s=t[0]&&t[0].length,r=0;rl;l++)isNaN(t[r][l])&&(t[r][l]=e[r][l])}function mi(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var o=0;n>o;o++)if(t[o]!==e[o])return!1}else for(var a=t[0].length,o=0;n>o;o++)for(var r=0;a>r;r++)if(t[o][r]!==e[o][r])return!1;return!0}function vi(t,e,i,n,o,a,r,s,l){var u=t.length;if(1===l)for(var h=0;u>h;h++)s[h]=yi(t[h],e[h],i[h],n[h],o,a,r);else for(var c=t[0].length,h=0;u>h;h++)for(var d=0;c>d;d++)s[h][d]=yi(t[h][d],e[h][d],i[h][d],n[h][d],o,a,r)}function yi(t,e,i,n,o,a,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*a+s*o+e}function xi(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;e>n;n++)i.push(sM.call(t[n]));return i}return sM.call(t)}return t}function _i(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function wi(t){var e=t[t.length-1].value;return d(e&&e[0])?2:1}function bi(t,e,i,n,o,a){var r=t._getter,s=t._setter,l="spline"===e,u=n.length;if(u){var h,c=n[0].value,f=d(c),p=!1,g=!1,m=f?wi(n):0;n.sort(function(t,e){return t.time-e.time}),h=n[u-1].time;for(var v=[],y=[],x=n[0].value,_=!0,w=0;u>w;w++){v.push(n[w].time/h);var b=n[w].value;if(f&&mi(b,x,m)||!f&&b===x||(_=!1),x=b,"string"==typeof b){var S=ti(b);S?(b=S,p=!0):g=!0}y.push(b)}if(a||!_){for(var M=y[u-1],w=0;u-1>w;w++)f?gi(y[w],M,m):!isNaN(y[w])||isNaN(M)||g||p||(y[w]=M);f&&gi(r(t._target,o),M,m);var I,T,A,D,C,L,k=0,P=0;if(p)var O=[0,0,0,0];var E=function(t,e){var i;if(0>e)i=0;else if(P>e){for(I=Math.min(k+1,u-1),i=I;i>=0&&!(v[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=k;u>i&&!(v[i]>e);i++);i=Math.min(i-1,u-2)}k=i,P=e;var n=v[i+1]-v[i];if(0!==n)if(T=(e-v[i])/n,l)if(D=y[i],A=y[0===i?i:i-1],C=y[i>u-2?u-1:i+1],L=y[i>u-3?u-1:i+2],f)vi(A,D,C,L,T,T*T,T*T*T,r(t,o),m);else{var a;if(p)a=vi(A,D,C,L,T,T*T,T*T*T,O,1),a=_i(O);else{if(g)return fi(D,C,T);a=yi(A,D,C,L,T,T*T,T*T*T)}s(t,o,a)}else if(f)pi(y[i],y[i+1],T,r(t,o),m);else{var a;if(p)pi(y[i],y[i+1],T,O,1),a=_i(O);else{if(g)return fi(y[i],y[i+1],T);a=di(y[i],y[i+1],T)}s(t,o,a)}},N=new He({target:t._target,life:h,loop:t._loop,delay:t._delay,onframe:E,ondestroy:i});return e&&"spline"!==e&&(N.easing=e),N}}}function Si(t,e,i,n,o,a,r,s){function l(){h--,h||a&&a()}b(n)?(a=o,o=n,n=0):w(o)?(a=o,o="linear",n=0):w(n)?(a=n,n=0):w(i)?(a=i,i=500):i||(i=500),t.stopAnimation(),Mi(t,"",t,e,i,n,s);var u=t.animators.slice(),h=u.length;h||a&&a();for(var c=0;c0&&t.animate(e,!1).when(null==o?500:o,s).delay(a||0)}function Ii(t,e,i,n){if(e){var o={};o[e]={},o[e][i]=n,t.attr(o)}else t.attr(i,n)}function Ti(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function Ai(t){for(var e=0;t>=_M;)e|=1&t,t>>=1;return t+e}function Di(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;i>o&&n(t[o],t[o-1])<0;)o++;Ci(t,e,o)}else for(;i>o&&n(t[o],t[o-1])>=0;)o++;return o-e}function Ci(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function Li(t,e,i,n,o){for(n===e&&n++;i>n;n++){for(var a,r=t[n],s=e,l=n;l>s;)a=s+l>>>1,o(r,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=r}}function ki(t,e,i,n,o,a){var r=0,s=0,l=1;if(a(t,e[i+o])>0){for(s=n-o;s>l&&a(t,e[i+o+l])>0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),r+=o,l+=o}else{for(s=o+1;s>l&&a(t,e[i+o-l])<=0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=r;r=o-l,l=o-u}for(r++;l>r;){var h=r+(l-r>>>1);a(t,e[i+h])>0?r=h+1:l=h}return l}function Pi(t,e,i,n,o,a){var r=0,s=0,l=1;if(a(t,e[i+o])<0){for(s=o+1;s>l&&a(t,e[i+o-l])<0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=r;r=o-l,l=o-u}else{for(s=n-o;s>l&&a(t,e[i+o+l])>=0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),r+=o,l+=o}for(r++;l>r;){var h=r+(l-r>>>1);a(t,e[i+h])<0?l=h:r=h+1}return l}function Oi(t,e){function i(t,e){l[c]=t,u[c]=e,c+=1}function n(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]u[t+1])break;a(t)}}function o(){for(;c>1;){var t=c-2;t>0&&u[t-1]=o?r(n,o,a,h):s(n,o,a,h)))}function r(i,n,o,a){var r=0;for(r=0;n>r;r++)d[r]=t[i+r];var s=0,l=o,u=i;if(t[u++]=t[l++],0!==--a){if(1===n){for(r=0;a>r;r++)t[u+r]=t[l+r];return void(t[u+a]=d[s])}for(var c,f,p,g=h;;){c=0,f=0,p=!1;do if(e(t[l],d[s])<0){if(t[u++]=t[l++],f++,c=0,0===--a){p=!0;break}}else if(t[u++]=d[s++],c++,f=0,1===--n){p=!0;break}while(g>(c|f));if(p)break;do{if(c=Pi(t[l],d,s,n,0,e),0!==c){for(r=0;c>r;r++)t[u+r]=d[s+r];if(u+=c,s+=c,n-=c,1>=n){p=!0;break}}if(t[u++]=t[l++],0===--a){p=!0;break}if(f=ki(d[s],t,l,a,0,e),0!==f){for(r=0;f>r;r++)t[u+r]=t[l+r];if(u+=f,l+=f,a-=f,0===a){p=!0;break}}if(t[u++]=d[s++],1===--n){p=!0;break}g--}while(c>=wM||f>=wM);if(p)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===n){for(r=0;a>r;r++)t[u+r]=t[l+r];t[u+a]=d[s]}else{if(0===n)throw new Error;for(r=0;n>r;r++)t[u+r]=d[s+r]}}else for(r=0;n>r;r++)t[u+r]=d[s+r]}function s(i,n,o,a){var r=0;for(r=0;a>r;r++)d[r]=t[o+r];var s=i+n-1,l=a-1,u=o+a-1,c=0,f=0;if(t[u--]=t[s--],0!==--n){if(1===a){for(u-=n,s-=n,f=u+1,c=s+1,r=n-1;r>=0;r--)t[f+r]=t[c+r];return void(t[u]=d[l])}for(var p=h;;){var g=0,m=0,v=!1;do if(e(d[l],t[s])<0){if(t[u--]=t[s--],g++,m=0,0===--n){v=!0;break}}else if(t[u--]=d[l--],m++,g=0,1===--a){v=!0;break}while(p>(g|m));if(v)break;do{if(g=n-Pi(d[l],t,i,n,n-1,e),0!==g){for(u-=g,s-=g,n-=g,f=u+1,c=s+1,r=g-1;r>=0;r--)t[f+r]=t[c+r];if(0===n){v=!0;break}}if(t[u--]=d[l--],1===--a){v=!0;break}if(m=a-ki(t[s],d,0,a,a-1,e),0!==m){for(u-=m,l-=m,a-=m,f=u+1,c=l+1,r=0;m>r;r++)t[f+r]=d[c+r];if(1>=a){v=!0;break}}if(t[u--]=t[s--],0===--n){v=!0;break}p--}while(g>=wM||m>=wM);if(v)break;0>p&&(p=0),p+=2}if(h=p,1>h&&(h=1),1===a){for(u-=n,s-=n,f=u+1,c=s+1,r=n-1;r>=0;r--)t[f+r]=t[c+r];t[u]=d[l]}else{if(0===a)throw new Error;for(c=u-(a-1),r=0;a>r;r++)t[c+r]=d[r]}}else for(c=u-(a-1),r=0;a>r;r++)t[c+r]=d[r]}var l,u,h=wM,c=0,d=[];l=[],u=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function Ei(t,e,i,n){i||(i=0),n||(n=t.length);var o=n-i;if(!(2>o)){var a=0;if(_M>o)return a=Di(t,i,n,e),void Li(t,i,n,i+a,e);var r=new Oi(t,e),s=Ai(o);do{if(a=Di(t,i,n,e),s>a){var l=o;l>s&&(l=s),Li(t,i,i+l,i+a,e),a=l}r.pushRun(i,a),r.mergeRuns(),o-=a,i+=a}while(0!==o);r.forceMergeRuns()}}function Ni(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function zi(t,e,i){var n=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,r=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,o=o*i.width+i.x,a=a*i.height+i.y,r=r*i.height+i.y),n=isNaN(n)?0:n,o=isNaN(o)?1:o,a=isNaN(a)?0:a,r=isNaN(r)?0:r;var s=t.createLinearGradient(n,a,o,r);return s}function Ri(t,e,i){var n=i.width,o=i.height,a=Math.min(n,o),r=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(r=r*n+i.x,s=s*o+i.y,l*=a);var u=t.createRadialGradient(r,s,0,r,s,l);return u}function Bi(){return!1}function Vi(t,e,i){var n=mS(),o=e.getWidth(),a=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left=0,r.top=0,r.width=o+"px",r.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*i,n.height=a*i,n}function Gi(t){if("string"==typeof t){var e=NM.get(t);return e&&e.image}return t}function Fi(t,e,i,n,o){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var a=NM.get(t),r={hostEl:i,cb:n,cbPayload:o};return a?(e=a.image,!Hi(e)&&a.pending.push(r)):(e=new Image,e.onload=e.onerror=Wi,NM.put(t,e.__cachedImgObj={image:e,pending:[r]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Wi(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ea;a++)o=Math.max(nn(n[a],e).width,o);return RM>BM&&(RM=0,zM={}),RM++,zM[i]=o,o}function Ui(t,e,i,n,o,a,r,s){return r?Yi(t,e,i,n,o,a,r,s):Xi(t,e,i,n,o,a,s)}function Xi(t,e,i,n,o,a,r){var s=on(t,e,o,a,r),l=Zi(t,e);o&&(l+=o[1]+o[3]);var u=s.outerHeight,h=ji(0,l,i),c=qi(0,u,n),d=new Ti(h,c,l,u);return d.lineHeight=s.lineHeight,d}function Yi(t,e,i,n,o,a,r,s){var l=an(t,{rich:r,truncate:s,font:e,textAlign:i,textPadding:o,textLineHeight:a}),u=l.outerWidth,h=l.outerHeight,c=ji(0,u,i),d=qi(0,h,n);return new Ti(c,d,u,h)}function ji(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function qi(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Ki(t,e,i){var n=e.textPosition,o=e.textDistance,a=i.x,r=i.y;o=o||0;var s=i.height,l=i.width,u=s/2,h="left",c="top";switch(n){case"left":a-=o,r+=u,h="right",c="middle";break;case"right":a+=o+l,r+=u,c="middle";break;case"top":a+=l/2,r-=o,h="center",c="bottom";break;case"bottom":a+=l/2,r+=s+o,h="center";break;case"inside":a+=l/2,r+=u,h="center",c="middle";break;case"insideLeft":a+=o,r+=u,c="middle";break;case"insideRight":a+=l-o,r+=u,h="right",c="middle";break;case"insideTop":a+=l/2,r+=o,h="center";break;case"insideBottom":a+=l/2,r+=s-o,h="center",c="bottom";break;case"insideTopLeft":a+=o,r+=o;break;case"insideTopRight":a+=l-o,r+=o,h="right";break;case"insideBottomLeft":a+=o,r+=s-o,c="bottom";break;case"insideBottomRight":a+=l-o,r+=s-o,h="right",c="bottom"}return t=t||{},t.x=a,t.y=r,t.textAlign=h,t.textVerticalAlign=c,t}function $i(t,e,i,n,o){if(!e)return"";var a=(t+"").split("\n");o=Ji(e,i,n,o);for(var r=0,s=a.length;s>r;r++)a[r]=Qi(a[r],o);return a.join("\n")}function Ji(t,e,i,n){n=r({},n),n.font=e;var i=C(i,"...");n.maxIterations=C(n.maxIterations,2);var o=n.minChar=C(n.minChar,0);n.cnCharWidth=Zi("国",e);var a=n.ascCharWidth=Zi("a",e);n.placeholder=C(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=Zi(i,e);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function Qi(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var a=Zi(t,n);if(i>=a)return t;for(var r=0;;r++){if(o>=a||r>=e.maxIterations){t+=e.ellipsis;break}var s=0===r?tn(t,o,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,s),a=Zi(t,n)}return""===t&&(t=e.placeholder),t}function tn(t,e,i,n){for(var o=0,a=0,r=t.length;r>a&&e>o;a++){var s=t.charCodeAt(a);o+=s>=0&&127>=s?i:n}return a}function en(t){return Zi("国",t)}function nn(t,e){return FM.measureText(t,e)}function on(t,e,i,n,o){null!=t&&(t+="");var a=C(n,en(e)),r=t?t.split("\n"):[],s=r.length*a,l=s,u=!0;if(i&&(l+=i[0]+i[2]),t&&o){u=!1;var h=o.outerHeight,c=o.outerWidth;if(null!=h&&l>h)t="",r=[];else if(null!=c)for(var d=Ji(c-(i?i[1]+i[3]:0),e,o.ellipsis,{minChar:o.minChar,placeholder:o.placeholder}),f=0,p=r.length;p>f;f++)r[f]=Qi(r[f],d)}return{lines:r,height:s,outerHeight:l,lineHeight:a,canCacheByTextString:u}}function an(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,o=VM.lastIndex=0;null!=(n=VM.exec(t));){var a=n.index;a>o&&rn(i,t.substring(o,a)),rn(i,n[2],n[1]),o=VM.lastIndex}of)return{lines:[],width:0,height:0};x.textWidth=Zi(x.text,b);var M=_.textWidth,I=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))x.percentWidth=M,u.push(x),M=0;else{if(I){M=x.textWidth;var T=_.textBackgroundColor,A=T&&T.image;A&&(A=Gi(A),Hi(A)&&(M=Math.max(M,A.width*S/A.height)))}var D=w?w[1]+w[3]:0;M+=D;var k=null!=d?d-v:null;null!=k&&M>k&&(!I||D>k?(x.text="",x.textWidth=M=0):(x.text=$i(x.text,k-D,b,c.ellipsis,{minChar:c.minChar}),x.textWidth=Zi(x.text,b),M=x.textWidth+D))}v+=x.width=M,_&&(m=Math.max(m,x.lineHeight))}g.width=v,g.lineHeight=m,s+=m,l=Math.max(l,v)}i.outerWidth=i.width=C(e.textWidth,l),i.outerHeight=i.height=C(e.textHeight,s),h&&(i.outerWidth+=h[1]+h[3],i.outerHeight+=h[0]+h[2]);for(var p=0;pl&&(r+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?i=n=o=a=h:h instanceof Array?1===h.length?i=n=o=a=h[0]:2===h.length?(i=o=h[0],n=a=h[1]):3===h.length?(i=h[0],n=a=h[1],o=h[2]):(i=h[0],n=h[1],o=h[2],a=h[3]):i=n=o=a=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),o+a>l&&(c=o+a,o*=l/c,a*=l/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),i+a>u&&(c=i+a,i*=u/c,a*=u/c),t.moveTo(r+i,s),t.lineTo(r+l-n,s),0!==n&&t.arc(r+l-n,s+n,n,-Math.PI/2,0),t.lineTo(r+l,s+u-o),0!==o&&t.arc(r+l-o,s+u-o,o,0,Math.PI/2),t.lineTo(r+a,s+u),0!==a&&t.arc(r+a,s+u-a,a,Math.PI/2,Math.PI),t.lineTo(r,s+i),0!==i&&t.arc(r+i,s+i,i,Math.PI,1.5*Math.PI)}function un(t){return hn(t),f(t.rich,hn),t}function hn(t){if(t){t.font=sn(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||HM[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||ZM[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=P(t.textPadding))}}function cn(t,e,i,n,o,a){n.rich?fn(t,e,i,n,o,a):dn(t,e,i,n,o,a)}function dn(t,e,i,n,o,a){var r,s=vn(n),l=!1,u=e.__attrCachedBy===IM.PLAIN_TEXT;a!==TM?(a&&(r=a.style,l=!s&&u&&r),e.__attrCachedBy=s?IM.NONE:IM.PLAIN_TEXT):u&&(e.__attrCachedBy=IM.NONE);var h=n.font||WM;l&&h===(r.font||WM)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=n.textPadding,f=n.textLineHeight,p=t.__textCotentBlock;(!p||t.__dirtyText)&&(p=t.__textCotentBlock=on(i,c,d,f,n.truncate));var g=p.outerHeight,m=p.lines,v=p.lineHeight,y=_n(YM,t,n,o),x=y.baseX,_=y.baseY,w=y.textAlign||"left",b=y.textVerticalAlign;gn(e,n,o,x,_);var S=qi(_,g,b),M=x,I=S;if(s||d){var T=Zi(i,c),A=T;d&&(A+=d[1]+d[3]);var D=ji(x,A,w);s&&yn(t,e,n,D,S,A,g),d&&(M=In(x,w,d),I+=d[0])}e.textAlign=w,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var C=0;CT&&(_=b[T],!_.textAlign||"left"===_.textAlign);)mn(t,e,_,n,M,v,A,"left"),I-=_.width,A+=_.width,T++;for(;C>=0&&(_=b[C],"right"===_.textAlign);)mn(t,e,_,n,M,v,D,"right"),I-=_.width,D-=_.width,C--;for(A+=(a-(A-m)-(y-D)-I)/2;C>=T;)_=b[T],mn(t,e,_,n,M,v,A+_.width/2,"center"),A+=_.width,T++;v+=M}}function gn(t,e,i,n,o){if(i&&e.textRotation){var a=e.textOrigin;"center"===a?(n=i.width/2+i.x,o=i.height/2+i.y):a&&(n=a[0]+i.x,o=a[1]+i.y),t.translate(n,o),t.rotate(-e.textRotation),t.translate(-n,-o)}}function mn(t,e,i,n,o,a,r,s){var l=n.rich[i.styleName]||{}; +l.text=i.text;var u=i.textVerticalAlign,h=a+o/2;"top"===u?h=a+i.height/2:"bottom"===u&&(h=a+o-i.height/2),!i.isLineHolder&&vn(l)&&yn(t,e,l,"right"===s?r-i.width:"center"===s?r-i.width/2:r,h-i.height/2,i.width,i.height);var c=i.textPadding;c&&(r=In(r,s,c),h-=i.height/2-c[2]-i.textHeight/2),wn(e,"shadowBlur",L(l.textShadowBlur,n.textShadowBlur,0)),wn(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),wn(e,"shadowOffsetX",L(l.textShadowOffsetX,n.textShadowOffsetX,0)),wn(e,"shadowOffsetY",L(l.textShadowOffsetY,n.textShadowOffsetY,0)),wn(e,"textAlign",s),wn(e,"textBaseline","middle"),wn(e,"font",i.font||WM);var d=bn(l.textStroke||n.textStroke,p),f=Sn(l.textFill||n.textFill),p=C(l.textStrokeWidth,n.textStrokeWidth);d&&(wn(e,"lineWidth",p),wn(e,"strokeStyle",d),e.strokeText(i.text,r,h)),f&&(wn(e,"fillStyle",f),e.fillText(i.text,r,h))}function vn(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function yn(t,e,i,n,o,a,r){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,h=b(s);if(wn(e,"shadowBlur",i.textBoxShadowBlur||0),wn(e,"shadowColor",i.textBoxShadowColor||"transparent"),wn(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),wn(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=i.textBorderRadius;c?ln(e,{x:n,y:o,width:a,height:r,r:c}):e.rect(n,o,a,r),e.closePath()}if(h)if(wn(e,"fillStyle",s),null!=i.fillOpacity){var d=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=d}else e.fill();else if(S(s)){var f=s.image;f=Fi(f,null,t,xn,s),f&&Hi(f)&&e.drawImage(f,n,o,a,r)}if(l&&u)if(wn(e,"lineWidth",l),wn(e,"strokeStyle",u),null!=i.strokeOpacity){var d=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=d}else e.stroke()}function xn(t,e){e.image=t}function _n(t,e,i,n){var o=i.x||0,a=i.y||0,r=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)o=n.x+Mn(l[0],n.width),a=n.y+Mn(l[1],n.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(XM,i,n):Ki(XM,i,n);o=u.x,a=u.y,r=r||u.textAlign,s=s||u.textVerticalAlign}var h=i.textOffset;h&&(o+=h[0],a+=h[1])}return t=t||{},t.baseX=o,t.baseY=a,t.textAlign=r,t.textVerticalAlign=s,t}function wn(t,e,i){return t[e]=MM(t,e,i),t[e]}function bn(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Sn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Mn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function In(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Tn(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function An(t){t=t||{},gM.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new DM(t.style,this),this._rect=null,this.__clipPaths=null}function Dn(t){An.call(this,t)}function Cn(t){return parseInt(t,10)}function Ln(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function kn(t,e,i){return tI.copy(t.getBoundingRect()),t.transform&&tI.applyTransform(t.transform),eI.width=e,eI.height=i,!tI.intersect(eI)}function Pn(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;in;n++){var a=i[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}function io(t){return!xI(t)||_I(t)||t instanceof Date?t:t.value}function no(t){return xI(t)&&!(t instanceof Array)}function oo(t,e){e=(e||[]).slice();var i=p(t||[],function(t){return{exist:t}});return yI(e,function(t,n){if(xI(t)){for(var o=0;o=i.length&&i.push({option:t})}}),i}function ao(t){var e=B();yI(t,function(t){var i=t.exist;i&&e.set(i.id,t)}),yI(t,function(t){var i=t.option;O(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),yI(t,function(t,i){var n=t.exist,o=t.option,a=t.keyInfo;if(xI(o)){if(a.name=null!=o.name?o.name+"":n?n.name:wI+i,n)a.id=n.id;else if(null!=o.id)a.id=o.id+"";else{var r=0;do a.id="\x00"+a.name+"\x00"+r++;while(e.get(a.id))}e.set(a.id,t)}})}function ro(t){var e=t.name;return!(!e||!e.indexOf(wI))}function so(t){return xI(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")}function lo(t,e){function i(t,e,i){for(var n=0,o=t.length;o>n;n++)for(var a=t[n].seriesId,r=to(t[n].dataIndex),s=i&&i[a],l=0,u=r.length;u>l;l++){var h=r[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var o in t)if(t.hasOwnProperty(o)&&null!=t[o])if(e)i.push(+o);else{var a=n(t[o],!0);a.length&&i.push({seriesId:o,dataIndex:a})}return i}var o={},a={};return i(t||[],o),i(e||[],a,o),[n(o),n(a)]}function uo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?_(e.dataIndex)?p(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?_(e.name)?p(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function ho(){var t="__\x00ec_inner_"+SI++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function co(t,e,i){if(b(e)){var n={};n[e+"Index"]=0,e=n}var o=i&&i.defaultMainType;!o||fo(e,o+"Index")||fo(e,o+"Id")||fo(e,o+"Name")||(e[o+"Index"]=0);var a={};return yI(e,function(n,o){var n=e[o];if("dataIndex"===o||"dataIndexInside"===o)return void(a[o]=n);var r=o.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(!(!s||!l||null==n||"index"===l&&"none"===n||i&&i.includeMainTypes&&u(i.includeMainTypes,s)<0)){var h={mainType:s};("index"!==l||"all"!==n)&&(h[l]=n);var c=t.queryComponents(h);a[s+"Models"]=c,a[s+"Model"]=c[0]}}),a}function fo(t,e){return t&&t.hasOwnProperty(e)}function po(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function go(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function mo(t){return"auto"===t?aS.domSupported?"html":"richText":t||"html"}function vo(t,e){var i=B(),n=[];return f(t,function(t){var o=e(t);(i.get(o)||(n.push(o),i.set(o,[]))).push(t)}),{keys:n,buckets:i}}function yo(t){var e={main:"",sub:""};return t&&(t=t.split(MI),e.main=t[0]||"",e.sub=t[1]||""),e}function xo(t){O(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function _o(t,e){t.$constructor=t,t.extend=function(t){eS&&f(e,function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var i=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):i.apply(this,arguments)};return r(n.prototype,t),n.extend=this.extend,n.superCall=bo,n.superApply=So,h(n,this),n.superClass=i,n}}function wo(t){var e=["__\x00is_clz",TI++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,eS&&O(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(t){return!(!t||!t[e])}}function bo(t,e){var i=k(arguments,2);return this.superClass.prototype[e].apply(t,i)}function So(t,e,i){return this.superClass.prototype[e].apply(t,i)}function Mo(t,e){function i(t){var e=n[t.main];return e&&e[II]||(e=n[t.main]={},e[II]=!0),e}e=e||{};var n={};if(t.registerClass=function(t,e){if(e)if(xo(e),e=yo(e),e.sub){if(e.sub!==II){var o=i(e);o[e.sub]=t}}else eS&&n[e.main]&&console.warn(e.main+" exists."),n[e.main]=t;return t},t.getClass=function(t,e,i){var o=n[t];if(o&&o[II]&&(o=e?o[e]:null),i&&!o)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){t=yo(t);var e=[],i=n[t.main];return i&&i[II]?f(i,function(t,i){i!==II&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=yo(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(n,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=yo(t);var e=n[t.main];return e&&e[II]},t.parseClassType=yo,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var i=o.call(this,e);return t.registerClass(i,e.type)})}return t}function Io(t){return t>-EI&&EI>t}function To(t){return t>EI||-EI>t}function Ao(t,e,i,n,o){var a=1-o;return a*a*(a*t+3*o*e)+o*o*(o*n+3*a*i)}function Do(t,e,i,n,o){var a=1-o;return 3*(((e-t)*a+2*(i-e)*o)*a+(n-i)*o*o)}function Co(t,e,i,n,o,a){var r=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-o,h=s*s-3*r*l,c=s*l-9*r*u,d=l*l-3*s*u,f=0;if(Io(h)&&Io(c))if(Io(s))a[0]=0;else{var p=-l/s;p>=0&&1>=p&&(a[f++]=p)}else{var g=c*c-4*h*d;if(Io(g)){var m=c/h,p=-s/r+m,v=-m/2;p>=0&&1>=p&&(a[f++]=p),v>=0&&1>=v&&(a[f++]=v)}else if(g>0){var y=OI(g),x=h*s+1.5*r*(-c+y),_=h*s+1.5*r*(-c-y);x=0>x?-PI(-x,RI):PI(x,RI),_=0>_?-PI(-_,RI):PI(_,RI);var p=(-s-(x+_))/(3*r);p>=0&&1>=p&&(a[f++]=p)}else{var w=(2*h*s-3*r*c)/(2*OI(h*h*h)),b=Math.acos(w)/3,S=OI(h),M=Math.cos(b),p=(-s-2*S*M)/(3*r),v=(-s+S*(M+zI*Math.sin(b)))/(3*r),I=(-s+S*(M-zI*Math.sin(b)))/(3*r);p>=0&&1>=p&&(a[f++]=p),v>=0&&1>=v&&(a[f++]=v),I>=0&&1>=I&&(a[f++]=I)}}return f}function Lo(t,e,i,n,o){var a=6*i-12*e+6*t,r=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Io(r)){if(To(a)){var u=-s/a;u>=0&&1>=u&&(o[l++]=u)}}else{var h=a*a-4*r*s;if(Io(h))o[0]=-a/(2*r);else if(h>0){var c=OI(h),u=(-a+c)/(2*r),d=(-a-c)/(2*r);u>=0&&1>=u&&(o[l++]=u),d>=0&&1>=d&&(o[l++]=d)}}return l}function ko(t,e,i,n,o,a){var r=(e-t)*o+t,s=(i-e)*o+e,l=(n-i)*o+i,u=(s-r)*o+r,h=(l-s)*o+s,c=(h-u)*o+u;a[0]=t,a[1]=r,a[2]=u,a[3]=c,a[4]=c,a[5]=h,a[6]=l,a[7]=n}function Po(t,e,i,n,o,a,r,s,l,u,h){var c,d,f,p,g,m=.005,v=1/0;BI[0]=l,BI[1]=u;for(var y=0;1>y;y+=.05)VI[0]=Ao(t,i,o,r,y),VI[1]=Ao(e,n,a,s,y),p=MS(BI,VI),v>p&&(c=y,v=p);v=1/0;for(var x=0;32>x&&!(NI>m);x++)d=c-m,f=c+m,VI[0]=Ao(t,i,o,r,d),VI[1]=Ao(e,n,a,s,d),p=MS(VI,BI),d>=0&&v>p?(c=d,v=p):(GI[0]=Ao(t,i,o,r,f),GI[1]=Ao(e,n,a,s,f),g=MS(GI,BI),1>=f&&v>g?(c=f,v=g):m*=.5);return h&&(h[0]=Ao(t,i,o,r,c),h[1]=Ao(e,n,a,s,c)),OI(v)}function Oo(t,e,i,n){var o=1-n;return o*(o*t+2*n*e)+n*n*i}function Eo(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function No(t,e,i,n,o){var a=t-2*e+i,r=2*(e-t),s=t-n,l=0;if(Io(a)){if(To(r)){var u=-s/r;u>=0&&1>=u&&(o[l++]=u)}}else{var h=r*r-4*a*s;if(Io(h)){var u=-r/(2*a);u>=0&&1>=u&&(o[l++]=u)}else if(h>0){var c=OI(h),u=(-r+c)/(2*a),d=(-r-c)/(2*a);u>=0&&1>=u&&(o[l++]=u),d>=0&&1>=d&&(o[l++]=d)}}return l}function zo(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function Ro(t,e,i,n,o){var a=(e-t)*n+t,r=(i-e)*n+e,s=(r-a)*n+a;o[0]=t,o[1]=a,o[2]=s,o[3]=s,o[4]=r,o[5]=i}function Bo(t,e,i,n,o,a,r,s,l){var u,h=.005,c=1/0;BI[0]=r,BI[1]=s;for(var d=0;1>d;d+=.05){VI[0]=Oo(t,i,o,d),VI[1]=Oo(e,n,a,d);var f=MS(BI,VI);c>f&&(u=d,c=f)}c=1/0;for(var p=0;32>p&&!(NI>h);p++){var g=u-h,m=u+h;VI[0]=Oo(t,i,o,g),VI[1]=Oo(e,n,a,g);var f=MS(VI,BI);if(g>=0&&c>f)u=g,c=f;else{GI[0]=Oo(t,i,o,m),GI[1]=Oo(e,n,a,m);var v=MS(GI,BI);1>=m&&c>v?(u=m,c=v):h*=.5}}return l&&(l[0]=Oo(t,i,o,u),l[1]=Oo(e,n,a,u)),OI(c)}function Vo(t,e,i){if(0!==t.length){var n,o=t[0],a=o[0],r=o[0],s=o[1],l=o[1];for(n=1;nh;h++){var p=d(t,i,o,r,qI[h]);l[0]=FI(p,l[0]),u[0]=WI(p,u[0])}for(f=c(e,n,a,s,KI),h=0;f>h;h++){var g=d(e,n,a,s,KI[h]);l[1]=FI(g,l[1]),u[1]=WI(g,u[1])}l[0]=FI(t,l[0]),u[0]=WI(t,u[0]),l[0]=FI(r,l[0]),u[0]=WI(r,u[0]),l[1]=FI(e,l[1]),u[1]=WI(e,u[1]),l[1]=FI(s,l[1]),u[1]=WI(s,u[1])}function Wo(t,e,i,n,o,a,r,s){var l=zo,u=Oo,h=WI(FI(l(t,i,o),1),0),c=WI(FI(l(e,n,a),1),0),d=u(t,i,o,h),f=u(e,n,a,c);r[0]=FI(t,o,d),r[1]=FI(e,a,f),s[0]=WI(t,o,d),s[1]=WI(e,a,f)}function Ho(t,e,i,n,o,a,r,s,l){var u=re,h=se,c=Math.abs(o-a);if(1e-4>c%UI&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(XI[0]=ZI(o)*i+t,XI[1]=HI(o)*n+e,YI[0]=ZI(a)*i+t,YI[1]=HI(a)*n+e,u(s,XI,YI),h(l,XI,YI),o%=UI,0>o&&(o+=UI),a%=UI,0>a&&(a+=UI),o>a&&!r?a+=UI:a>o&&r&&(o+=UI),r){var d=a;a=o,o=d}for(var f=0;a>f;f+=Math.PI/2)f>o&&(jI[0]=ZI(f)*i+t,jI[1]=HI(f)*n+e,u(s,jI,s),h(l,jI,l))}function Zo(t,e,i,n,o,a,r){if(0===o)return!1;var s=o,l=0,u=t;if(r>e+s&&r>n+s||e-s>r&&n-s>r||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var h=l*a-r+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Uo(t,e,i,n,o,a,r,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>n+c&&h>a+c&&h>s+c||e-c>h&&n-c>h&&a-c>h&&s-c>h||u>t+c&&u>i+c&&u>o+c&&u>r+c||t-c>u&&i-c>u&&o-c>u&&r-c>u)return!1;var d=Po(t,e,i,n,o,a,r,s,u,h,null);return c/2>=d}function Xo(t,e,i,n,o,a,r,s,l){if(0===r)return!1;var u=r;if(l>e+u&&l>n+u&&l>a+u||e-u>l&&n-u>l&&a-u>l||s>t+u&&s>i+u&&s>o+u||t-u>s&&i-u>s&&o-u>s)return!1;var h=Bo(t,e,i,n,o,a,s,l,null);return u/2>=h}function Yo(t){return t%=hT,0>t&&(t+=hT),t}function jo(t,e,i,n,o,a,r,s,l){if(0===r)return!1;var u=r;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||i>h+u)return!1;if(Math.abs(n-o)%cT<1e-4)return!0;if(a){var c=n;n=Yo(o),o=Yo(c)}else n=Yo(n),o=Yo(o);n>o&&(o+=cT);var d=Math.atan2(l,s);return 0>d&&(d+=cT),d>=n&&o>=d||d+cT>=n&&o>=d+cT}function qo(t,e,i,n,o,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var r=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(r=e>n?.5:-.5);var l=s*(i-t)+t;return l===o?1/0:l>o?r:0}function Ko(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||e>u&&n>u&&a>u&&s>u)return 0;var h=Co(e,n,a,s,u,gT);if(0===h)return 0;for(var c,d,f=0,p=-1,g=0;h>g;g++){var m=gT[g],v=0===m||1===m?.5:1,y=Ao(t,i,o,r,m);l>y||(0>p&&(p=Lo(e,n,a,s,mT),mT[1]1&&$o(),c=Ao(e,n,a,s,mT[0]),p>1&&(d=Ao(e,n,a,s,mT[1]))),f+=2===p?mc?v:-v:md?v:-v:d>s?v:-v:mc?v:-v:c>s?v:-v)}return f}function Qo(t,e,i,n,o,a,r,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=No(e,n,a,s,gT);if(0===l)return 0;var u=zo(e,n,a);if(u>=0&&1>=u){for(var h=0,c=Oo(e,n,a,u),d=0;l>d;d++){var f=0===gT[d]||1===gT[d]?.5:1,p=Oo(t,i,o,gT[d]);r>p||(h+=gT[d]c?f:-f:c>a?f:-f)}return h}var f=0===gT[0]||1===gT[0]?.5:1,p=Oo(t,i,o,gT[0]);return r>p?0:e>a?f:-f}function ta(t,e,i,n,o,a,r,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);gT[0]=-l,gT[1]=l;var u=Math.abs(n-o);if(1e-4>u)return 0;if(1e-4>u%fT){n=0,o=fT;var h=a?1:-1;return r>=gT[0]+t&&r<=gT[1]+t?h:0}if(a){var l=n;n=Yo(o),o=Yo(l)}else n=Yo(n),o=Yo(o);n>o&&(o+=fT);for(var c=0,d=0;2>d;d++){var f=gT[d];if(f+t>r){var p=Math.atan2(s,f),h=a?1:-1;0>p&&(p=fT+p),(p>=n&&o>=p||p+fT>=n&&o>=p+fT)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function ea(t,e,i,n,o){for(var a=0,r=0,s=0,l=0,u=0,h=0;h1&&(i||(a+=qo(r,s,l,u,n,o))),1===h&&(r=t[h],s=t[h+1],l=r,u=s),c){case dT.M:l=t[h++],u=t[h++],r=l,s=u;break;case dT.L:if(i){if(Zo(r,s,t[h],t[h+1],e,n,o))return!0}else a+=qo(r,s,t[h],t[h+1],n,o)||0;r=t[h++],s=t[h++];break;case dT.C:if(i){if(Uo(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,n,o))return!0}else a+=Jo(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],n,o)||0;r=t[h++],s=t[h++];break;case dT.Q:if(i){if(Xo(r,s,t[h++],t[h++],t[h],t[h+1],e,n,o))return!0}else a+=Qo(r,s,t[h++],t[h++],t[h],t[h+1],n,o)||0;r=t[h++],s=t[h++];break;case dT.A:var d=t[h++],f=t[h++],p=t[h++],g=t[h++],m=t[h++],v=t[h++];h+=1;var y=1-t[h++],x=Math.cos(m)*p+d,_=Math.sin(m)*g+f;h>1?a+=qo(r,s,x,_,n,o):(l=x,u=_);var w=(n-d)*g/p+d;if(i){if(jo(d,f,g,m,m+v,y,e,w,o))return!0}else a+=ta(d,f,g,m,m+v,y,w,o);r=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case dT.R:l=r=t[h++],u=s=t[h++];var b=t[h++],S=t[h++],x=l+b,_=u+S;if(i){if(Zo(l,u,x,u,e,n,o)||Zo(x,u,x,_,e,n,o)||Zo(x,_,l,_,e,n,o)||Zo(l,_,l,u,e,n,o))return!0}else a+=qo(x,u,x,_,n,o),a+=qo(l,_,l,u,n,o);break;case dT.Z:if(i){if(Zo(r,s,l,u,e,n,o))return!0}else a+=qo(r,s,l,u,n,o);r=l,s=u}}return i||Ko(s,u)||(a+=qo(r,s,l,u,n,o)||0),0!==a}function ia(t,e,i){return ea(t,0,!1,e,i)}function na(t,e,i,n){return ea(t,e,!0,i,n)}function oa(t){An.call(this,t),this.path=null}function aa(t,e,i,n,o,a,r,s,l,u,h){var c=l*(DT/180),d=AT(c)*(t-i)/2+TT(c)*(e-n)/2,f=-1*TT(c)*(t-i)/2+AT(c)*(e-n)/2,p=d*d/(r*r)+f*f/(s*s);p>1&&(r*=IT(p),s*=IT(p));var g=(o===a?-1:1)*IT((r*r*s*s-r*r*f*f-s*s*d*d)/(r*r*f*f+s*s*d*d))||0,m=g*r*f/s,v=g*-s*d/r,y=(t+i)/2+AT(c)*m-TT(c)*v,x=(e+n)/2+TT(c)*m+AT(c)*v,_=kT([1,0],[(d-m)/r,(f-v)/s]),w=[(d-m)/r,(f-v)/s],b=[(-1*d-m)/r,(-1*f-v)/s],S=kT(w,b);LT(w,b)<=-1&&(S=DT),LT(w,b)>=1&&(S=0),0===a&&S>0&&(S-=2*DT),1===a&&0>S&&(S+=2*DT),h.addData(u,y,x,r,s,_,S,c,a)}function ra(t){if(!t)return new uT;for(var e,i=0,n=0,o=i,a=n,r=new uT,s=uT.CMD,l=t.match(PT),u=0;ug;g++)f[g]=parseFloat(f[g]);for(var m=0;p>m;){var v,y,x,_,w,b,S,M=i,I=n;switch(d){case"l":i+=f[m++],n+=f[m++],h=s.L,r.addData(h,i,n);break;case"L":i=f[m++],n=f[m++],h=s.L,r.addData(h,i,n);break;case"m":i+=f[m++],n+=f[m++],h=s.M,r.addData(h,i,n),o=i,a=n,d="l";break;case"M":i=f[m++],n=f[m++],h=s.M,r.addData(h,i,n),o=i,a=n,d="L";break;case"h":i+=f[m++],h=s.L,r.addData(h,i,n);break;case"H":i=f[m++],h=s.L,r.addData(h,i,n);break;case"v":n+=f[m++],h=s.L,r.addData(h,i,n);break;case"V":n=f[m++],h=s.L,r.addData(h,i,n);break;case"C":h=s.C,r.addData(h,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),i=f[m-2],n=f[m-1];break;case"c":h=s.C,r.addData(h,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n),i+=f[m-2],n+=f[m-1];break;case"S":v=i,y=n;var T=r.len(),A=r.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),h=s.C,M=f[m++],I=f[m++],i=f[m++],n=f[m++],r.addData(h,v,y,M,I,i,n);break;case"s":v=i,y=n;var T=r.len(),A=r.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),h=s.C,M=i+f[m++],I=n+f[m++],i+=f[m++],n+=f[m++],r.addData(h,v,y,M,I,i,n);break;case"Q":M=f[m++],I=f[m++],i=f[m++],n=f[m++],h=s.Q,r.addData(h,M,I,i,n);break;case"q":M=f[m++]+i,I=f[m++]+n,i+=f[m++],n+=f[m++],h=s.Q,r.addData(h,M,I,i,n);break;case"T":v=i,y=n;var T=r.len(),A=r.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i=f[m++],n=f[m++],h=s.Q,r.addData(h,v,y,i,n);break;case"t":v=i,y=n;var T=r.len(),A=r.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i+=f[m++],n+=f[m++],h=s.Q,r.addData(h,v,y,i,n);break;case"A":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i=f[m++],n=f[m++],h=s.A,aa(M,I,i,n,b,S,x,_,w,h,r);break;case"a":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i+=f[m++],n+=f[m++],h=s.A,aa(M,I,i,n,b,S,x,_,w,h,r)}}("z"===d||"Z"===d)&&(h=s.Z,r.addData(h),i=o,n=a),e=h}return r.toStatic(),r}function sa(t,e){var i=ra(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;i.rebuildPath(e)}},e.applyTransform=function(t){MT(i,t),this.dirty(!0)},e}function la(t,e){return new oa(sa(t,e))}function ua(t,e){return oa.extend(sa(t,e))}function ha(t,e){for(var i=[],n=t.length,o=0;n>o;o++){var a=t[o];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),i.push(a.path)}var r=new oa(e);return r.createPathProxy(),r.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},r}function ca(t,e,i,n,o,a,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*a+s*o+e}function da(t,e,i){var n=e.points,o=e.smooth;if(n&&n.length>=2){if(o&&"spline"!==o){var a=FT(n,o,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var r=n.length,s=0;(i?r:r-1)>s;s++){var l=a[2*s],u=a[2*s+1],h=n[(s+1)%r];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===o&&(n=GT(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;c>s;s++)t.lineTo(n[s][0],n[s][1])}i&&t.closePath()}}function fa(t,e,i){if(e){var n=e.x1,o=e.x2,a=e.y1,r=e.y2;t.x1=n,t.x2=o,t.y1=a,t.y2=r;var s=i&&i.lineWidth;s&&(ZT(2*n)===ZT(2*o)&&(t.x1=t.x2=ga(n,s,!0)),ZT(2*a)===ZT(2*r)&&(t.y1=t.y2=ga(a,s,!0)))}}function pa(t,e,i){if(e){var n=e.x,o=e.y,a=e.width,r=e.height;t.x=n,t.y=o,t.width=a,t.height=r;var s=i&&i.lineWidth;s&&(t.x=ga(n,s,!0),t.y=ga(o,s,!0),t.width=Math.max(ga(n+a,s,!1)-t.x,0===a?0:1),t.height=Math.max(ga(o+r,s,!1)-t.y,0===r?0:1))}}function ga(t,e,i){if(!e)return t;var n=ZT(2*t);return(n+ZT(e))%2===0?n/2:(n+(i?1:-1))/2}function ma(t,e,i){var n=t.cpx2,o=t.cpy2;return null===n||null===o?[(i?Do:Ao)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Do:Ao)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?Eo:Oo)(t.x1,t.cpx1,t.x2,e),(i?Eo:Oo)(t.y1,t.cpy1,t.y2,e)]}function va(t){An.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function ya(t){return oa.extend(t)}function xa(t,e){return ua(t,e)}function _a(t,e){dA[t]=e}function wa(t){return dA.hasOwnProperty(t)?dA[t]:void 0}function ba(t,e,i,n){var o=la(t,e);return i&&("center"===n&&(i=Ma(i,o.getBoundingRect())),Ia(o,i)),o}function Sa(t,e,i){var n=new Dn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var o={width:t.width,height:t.height};n.setStyle(Ma(e,o))}}});return n}function Ma(t,e){var i,n=e.width/e.height,o=t.height*n;o<=t.width?i=t.height:(o=t.width,i=o/n);var a=t.x+t.width/2,r=t.y+t.height/2;return{x:a-o/2,y:r-i/2,width:o,height:i}}function Ia(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function Ta(t){return fa(t.shape,t.shape,t.style),t}function Aa(t){return pa(t.shape,t.shape,t.style),t}function Da(t){return null!=t&&"none"!==t}function Ca(t){if("string"!=typeof t)return t;var e=gA.get(t);return e||(e=ni(t,-.1),1e4>mA&&(gA.set(t,e),mA++)),e}function La(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(!e)return void(t.__cachedNormalStl=t.__cachedNormalZ2=null);var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var o in e)null!=e[o]&&(i[o]=n[o]);i.fill=n.fill,i.stroke=n.stroke}}function ka(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.__zr,n=t.useHoverLayer&&i&&"canvas"===i.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!i&&t.useHoverLayer)){var o=t,a=t.style;n&&(o=i.addHover(t),a=o.style),tr(a),n||La(o),a.extendFrom(e),Pa(a,e,"fill"),Pa(a,e,"stroke"),Qa(a),n||(t.dirty(!1),t.z2+=rA)}}}function Pa(t,e,i){!Da(e[i])&&Da(t[i])&&(t[i]=Ca(t[i]))}function Oa(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var i=t.style,n=t.__cachedNormalStl;n&&(tr(i),t.setStyle(n),Qa(i));var o=t.__cachedNormalZ2;null!=o&&t.z2-o===rA&&(t.z2=o)}}function Ea(t,e,i){var n,o=uA,a=uA;t.__highlighted&&(o=lA,n=!0),e(t,i),t.__highlighted&&(a=lA,n=!0),t.isGroup&&t.traverse(function(t){!t.isGroup&&e(t,i)}),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(o,a)}function Na(t,e){e=t.__hoverStl=e!==!1&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,Oa(t),ka(t))}function za(t){!Ga(this,t)&&!this.__highByOuter&&Ea(this,ka)}function Ra(t){!Ga(this,t)&&!this.__highByOuter&&Ea(this,Oa)}function Ba(t){this.__highByOuter|=1<<(t||0),Ea(this,ka)}function Va(t){!(this.__highByOuter&=~(1<<(t||0)))&&Ea(this,Oa)}function Ga(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Fa(t,e){Wa(t,!0),Ea(t,Na,e)}function Wa(t,e){var i=e===!1;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!i||t.__highDownDispatcher){var n=i?"off":"on";t[n]("mouseover",za)[n]("mouseout",Ra),t[n]("emphasis",Ba)[n]("normal",Va),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i}}function Ha(t){return!(!t||!t.__highDownDispatcher)}function Za(t){var e=cA[t];return null==e&&32>=hA&&(e=cA[t]=hA++),e}function Ua(t,e,i,n,o,a,r){o=o||aA;var s,l=o.labelFetcher,u=o.labelDataIndex,h=o.labelDimIndex,c=o.labelProp,d=i.getShallow("show"),f=n.getShallow("show");(d||f)&&(l&&(s=l.getFormattedLabel(u,"normal",null,h,c)),null==s&&(s=w(o.defaultText)?o.defaultText(u,o):o.defaultText));var p=d?s:null,g=f?C(l?l.getFormattedLabel(u,"emphasis",null,h,c):null,s):null;(null!=p||null!=g)&&(Ya(t,i,a,o),Ya(e,n,r,o,!0)),t.text=p,e.text=g}function Xa(t,e,i){var n=t.style;e&&(tr(n),t.setStyle(e),Qa(n)),n=t.__hoverStl,i&&n&&(tr(n),r(n,i),Qa(n))}function Ya(t,e,i,n,o){return qa(t,e,n,o),i&&r(t,i),t}function ja(t,e,i){var n,o={isRectText:!0};i===!1?n=!0:o.autoColor=i,qa(t,e,o,n)}function qa(t,e,i,n){if(i=i||aA,i.isRectText){var o;i.getTextPosition?o=i.getTextPosition(e,n):(o=e.getShallow("position")||(n?null:"inside"),"outside"===o&&(o="top")),t.textPosition=o,t.textOffset=e.getShallow("offset");var a=e.getShallow("rotate");null!=a&&(a*=Math.PI/180),t.textRotation=a,t.textDistance=C(e.getShallow("distance"),n?null:5)}var r,s=e.ecModel,l=s&&s.option.textStyle,u=Ka(e);if(u){r={};for(var h in u)if(u.hasOwnProperty(h)){var c=e.getModel(["rich",h]);$a(r[h]={},c,l,i,n)}}return t.rich=r,$a(t,e,l,i,n,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function Ka(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||aA).rich;if(i){e=e||{};for(var n in i)i.hasOwnProperty(n)&&(e[n]=1)}t=t.parentModel}return e}function $a(t,e,i,n,o,a){i=!o&&i||aA,t.textFill=Ja(e.getShallow("color"),n)||i.color,t.textStroke=Ja(e.getShallow("textBorderColor"),n)||i.textBorderColor,t.textStrokeWidth=C(e.getShallow("textBorderWidth"),i.textBorderWidth),o||(a&&(t.insideRollbackOpt=n,Qa(t)),null==t.textFill&&(t.textFill=n.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),a&&n.disableBox||(t.textBackgroundColor=Ja(e.getShallow("backgroundColor"),n),t.textPadding=e.getShallow("padding"),t.textBorderColor=Ja(e.getShallow("borderColor"),n),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function Ja(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function Qa(t){var e,i=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var o=n.autoColor,a=n.isRectText,r=n.useInsideStyle,s=r!==!1&&(r===!0||a&&i&&"string"==typeof i&&i.indexOf("inside")>=0),l=!s&&null!=o;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=o)}t.insideRollback=e}function tr(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function er(t,e){var i=e&&e.getModel("textStyle");return E([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function ir(t,e,i,n,o,a){"function"==typeof o&&(a=o,o=null);var r=n&&n.isAnimationEnabled();if(r){var s=t?"Update":"",l=n.getShallow("animationDuration"+s),u=n.getShallow("animationEasing"+s),h=n.getShallow("animationDelay"+s);"function"==typeof h&&(h=h(o,n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null)),"function"==typeof l&&(l=l(o)),l>0?e.animateTo(i,l,h||0,u,a,!!a):(e.stopAnimation(),e.attr(i),a&&a())}else e.stopAnimation(),e.attr(i),a&&a()}function nr(t,e,i,n,o){ir(!0,t,e,i,n,o)}function or(t,e,i,n,o){ir(!1,t,e,i,n,o)}function ar(t,e){for(var i=Ee([]);t&&t!==e;)ze(i,t.getLocalTransform(),i),t=t.parent;return i}function rr(t,e,i){return e&&!d(e)&&(e=ZS.getLocalTransform(e)),i&&(e=Ge([],e)),ae([],t,e)}function sr(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0];return a=rr(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function lr(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function o(t){var e={position:H(t.position),rotation:t.rotation};return t.shape&&(e.shape=r({},t.shape)),e}if(t&&e){var a=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=o(t);t.attr(o(e)),nr(t,n,i,t.dataIndex)}}})}}function ur(t,e){return p(t,function(t){var i=t[0];i=nA(i,e.x),i=oA(i,e.x+e.width);var n=t[1];return n=nA(n,e.y),n=oA(n,e.y+e.height),[i,n]})}function hr(t,e){var i=nA(t.x,e.x),n=oA(t.x+t.width,e.x+e.width),o=nA(t.y,e.y),a=oA(t.y+t.height,e.y+e.height);return n>=i&&a>=o?{x:i,y:o,width:n-i,height:a-o}:void 0}function cr(t,e,i){e=r({rectHover:!0},e);var n=e.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(n.image=t.slice(8),s(n,i),new Dn(e)):ba(t.replace("path://",""),e,i,"center"):void 0 +}function dr(t,e,i,n,o){for(var a=0,r=o[o.length-1];ag||g>1)return!1;var m=pr(f,p,h,c)/d;return 0>m||m>1?!1:!0}function pr(t,e,i,n){return t*n-i*e}function gr(t){return 1e-6>=t&&t>=-1e-6}function mr(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function vr(t,e,i){for(var n=0;n=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,o){function a(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function r(t){h[t]=!0,a(t)}if(t.length){var s=i(e),l=s.graph,u=s.noEntryList,h={};for(f(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],p=!!h[c];p&&(n.call(o,c,d.originalDeps.slice()),delete h[c]),f(d.successor,p?r:a)}f(h,function(){throw new Error("Circle dependency may exists")})}}}function br(t){return t.replace(/^\s+|\s+$/g,"")}function Sr(t,e,i,n){var o=e[1]-e[0],a=i[1]-i[0];if(0===o)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(o>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/o*a+i[0]}function Mr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?br(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function Ir(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function Tr(t){return t.sort(function(t,e){return t-e}),t}function Ar(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Dr(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return 0>n?-n:0}var o=e.indexOf(".");return 0>o?0:e.length-1-o}function Cr(t,e){var i=Math.log,n=Math.LN10,o=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n),r=Math.min(Math.max(-o+a,0),20);return isFinite(r)?r:20}function Lr(t,e,i){if(!t[e])return 0;var n=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var o=Math.pow(10,i),a=p(t,function(t){return(isNaN(t)?0:t)/n*o*100}),r=100*o,s=p(a,function(t){return Math.floor(t)}),l=g(s,function(t,e){return t+e},0),u=p(a,function(t,e){return t-s[e]});r>l;){for(var h=Number.NEGATIVE_INFINITY,c=null,d=0,f=u.length;f>d;++d)u[d]>h&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/o}function kr(t){var e=2*Math.PI;return(t%e+e)%e}function Pr(t){return t>-IA&&IA>t}function Or(t){if(t instanceof Date)return t;if("string"==typeof t){var e=AA.exec(t);if(!e)return new Date(0/0);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return new Date(null==t?0/0:Math.round(t))}function Er(t){return Math.pow(10,Nr(t))}function Nr(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function zr(t,e){var i,n=Nr(t),o=Math.pow(10,n),a=t/o;return i=e?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,t=i*o,n>=-20?+t.toFixed(0>n?-n:0):t}function Rr(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),o=+t[n-1],a=i-n;return a?o+a*(t[n]-o):o}function Br(t){function e(t,i,n){return t.interval[n]s;s++)a[s]<=i&&(a[s]=i,r[s]=s?1:1-n),i=a[s],n=r[s];a[0]===a[1]&&r[0]*r[1]!==1?t.splice(o,1):o++}return t}function Vr(t){return t-parseFloat(t)>=0}function Gr(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function Fr(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Wr(t){return null==t?"":(t+"").replace(LA,function(t,e){return kA[e]})}function Hr(t,e,i){_(e)||(e=[e]);var n=e.length;if(!n)return"";for(var o=e[0].$vars||[],a=0;as;s++)for(var l=0;l':'':{renderMode:o,content:"{marker"+a+"|} ",style:{color:i}}:""}function Xr(t,e){return t+="","0000".substr(0,e-t.length)+t}function Yr(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Or(e),o=i?"UTC":"",a=n["get"+o+"FullYear"](),r=n["get"+o+"Month"]()+1,s=n["get"+o+"Date"](),l=n["get"+o+"Hours"](),u=n["get"+o+"Minutes"](),h=n["get"+o+"Seconds"](),c=n["get"+o+"Milliseconds"]();return t=t.replace("MM",Xr(r,2)).replace("M",r).replace("yyyy",a).replace("yy",a%100).replace("dd",Xr(s,2)).replace("d",s).replace("hh",Xr(l,2)).replace("h",l).replace("mm",Xr(u,2)).replace("m",u).replace("ss",Xr(h,2)).replace("s",h).replace("SSS",Xr(c,3))}function jr(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function qr(t){return Ui(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function Kr(t,e,i,n,o,a,r,s){return Ui(t,e,i,n,o,s,a,r)}function $r(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}function Jr(t,e,i,n,o){var a=0,r=0;null==n&&(n=1/0),null==o&&(o=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);h=a+m,h>n||l.newline?(a=0,h=m,r+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);c=r+v,c>o||l.newline?(a+=s+i,r=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=r,"horizontal"===t?a=h+i:r=c+i)})}function Qr(t,e,i){var n=e.width,o=e.height,a=Mr(t.x,n),r=Mr(t.y,o),s=Mr(t.x2,n),l=Mr(t.y2,o);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(r)||isNaN(parseFloat(t.y)))&&(r=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=o),i=CA(i||0),{width:Math.max(s-a-i[1]-i[3],0),height:Math.max(l-r-i[0]-i[2],0)}}function ts(t,e,i){i=CA(i||0);var n=e.width,o=e.height,a=Mr(t.left,n),r=Mr(t.top,o),s=Mr(t.right,n),l=Mr(t.bottom,o),u=Mr(t.width,n),h=Mr(t.height,o),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(h)&&(h=o-l-c-r),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/o?u=.8*n:h=.8*o),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(a)&&(a=n-s-u-d),isNaN(r)&&(r=o-l-h-c),t.left||t.right){case"center":a=n/2-u/2-i[3];break;case"right":a=n-u-d}switch(t.top||t.bottom){case"middle":case"center":r=o/2-h/2-i[0];break;case"bottom":r=o-h-c}a=a||0,r=r||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(h)&&(h=o-c-r-(l||0));var p=new Ti(a+i[3],r+i[0],u,h);return p.margin=i,p}function es(t,e,i,n,o){var a=!o||!o.hv||o.hv[0],r=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(a||r){var u;if("raw"===l)u="group"===t.type?new Ti(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}e=ts(s({width:u.width,height:u.height},e),i,n);var c=t.position,d=a?e.x-u.x:0,f=r?e.y-u.y:0;t.attr("position","raw"===l?[d,f]:[c[0]+d,c[1]+f])}}function is(t,e){return null!=t[BA[e][0]]||null!=t[BA[e][1]]&&null!=t[BA[e][2]]}function ns(t,e,i){function n(i,n){var r={},l=0,u={},h=0,c=2;if(zA(i,function(e){u[e]=t[e]}),zA(i,function(t){o(e,t)&&(r[t]=u[t]=e[t]),a(r,t)&&l++,a(u,t)&&h++}),s[n])return a(e,i[1])?u[i[2]]=null:a(e,i[2])&&(u[i[1]]=null),u;if(h!==c&&l){if(l>=c)return r;for(var d=0;dn;n++)if(t[n].length>e)return t[n];return t[i-1]}function ls(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===KA?{}:[]),this.sourceFormat=t.sourceFormat||$A,this.seriesLayoutBy=t.seriesLayoutBy||QA,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&B(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function us(t){var e=t.option.source,i=$A;if(I(e))i=JA;else if(_(e)){0===e.length&&(i=jA);for(var n=0,o=e.length;o>n;n++){var a=e[n];if(null!=a){if(_(a)){i=jA;break}if(S(a)){i=qA;break}}}}else if(S(e)){for(var r in e)if(e.hasOwnProperty(r)&&d(e[r])){i=KA;break}}else if(null!=e)throw new Error("Invalid data");iD(t).sourceFormat=i}function hs(t){return iD(t).source}function cs(t){iD(t).datasetMap=B()}function ds(t){var e=t.option,i=e.data,n=I(i)?JA:YA,o=!1,a=e.seriesLayoutBy,r=e.sourceHeader,s=e.dimensions,l=xs(t);if(l){var u=l.option;i=u.source,n=iD(l).sourceFormat,o=!0,a=a||u.seriesLayoutBy,null==r&&(r=u.sourceHeader),s=s||u.dimensions}var h=fs(i,n,a,r,s);iD(t).source=new ls({data:i,fromDataset:o,seriesLayoutBy:a,sourceFormat:n,dimensionsDefine:h.dimensionsDefine,startIndex:h.startIndex,dimensionsDetectCount:h.dimensionsDetectCount,encodeDefine:e.encode})}function fs(t,e,i,n,o){if(!t)return{dimensionsDefine:ps(o)};var a,r;if(e===jA)"auto"===n||null==n?gs(function(t){null!=t&&"-"!==t&&(b(t)?null==r&&(r=1):r=0)},i,t,10):r=n?1:0,o||1!==r||(o=[],gs(function(t,e){o[e]=null!=t?t:""},i,t)),a=o?o.length:i===tD?t.length:t[0]?t[0].length:null;else if(e===qA)o||(o=ms(t));else if(e===KA)o||(o=[],f(t,function(t,e){o.push(e)}));else if(e===YA){var s=io(t[0]);a=_(s)&&s.length||1}else e===JA&&eS&&O(!!o,"dimensions must be given if data is TypedArray.");return{startIndex:r,dimensionsDefine:ps(o),dimensionsDetectCount:a}}function ps(t){if(t){var e=B();return p(t,function(t){if(t=r({},S(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t})}}function gs(t,e,i,n){if(null==n&&(n=1/0),e===tD)for(var o=0;oo;o++)t(i[o]?i[o][0]:null,o);else for(var a=i[0]||[],o=0;oo;o++)t(a[o],o)}function ms(t){for(var e,i=0;in;n++)t.push(e+n)}function o(t){var e=t.dimsDef;return e?e.length:1}var a={},r=xs(e);if(!r||!t)return a;var s,l,u=[],h=[],c=e.ecModel,d=iD(c).datasetMap,p=r.uid+"_"+i.seriesLayoutBy;t=t.slice(),f(t,function(e,i){!S(e)&&(t[i]={name:e}),"ordinal"===e.type&&null==s&&(s=i,l=o(t[i])),a[e.name]=[]});var g=d.get(p)||d.set(p,{categoryWayDim:l,valueWayDim:0});return f(t,function(t,e){var i=t.name,r=o(t);if(null==s){var l=g.valueWayDim;n(a[i],l,r),n(h,l,r),g.valueWayDim+=r}else if(s===e)n(a[i],0,r),n(u,0,r);else{var l=g.categoryWayDim;n(a[i],l,r),n(h,l,r),g.categoryWayDim+=r}}),u.length&&(a.itemName=u),h.length&&(a.seriesName=h),a}function ys(t,e,i){var n={},o=xs(t);if(!o)return n;var a,r=e.sourceFormat,s=e.dimensionsDefine;(r===qA||r===KA)&&f(s,function(t,e){"name"===(S(t)?t.name:t)&&(a=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var n={},o={},l=[],u=0,h=Math.min(5,i);h>u;u++){var c=ws(e.data,r,e.seriesLayoutBy,s,e.startIndex,u);l.push(c);var d=c===eD.Not;if(d&&null==n.v&&u!==a&&(n.v=u),(null==n.n||n.n===n.v||!d&&l[n.n]===eD.Not)&&(n.n=u),t(n)&&l[n.n]!==eD.Not)return n;d||(c===eD.Might&&null==o.v&&u!==a&&(o.v=u),(null==o.n||o.n===o.v)&&(o.n=u))}return t(n)?n:t(o)?o:null}();if(l){n.value=l.v;var u=null!=a?a:l.n;n.itemName=[u],n.seriesName=[u]}return n}function xs(t){var e=t.option,i=e.data;return i?void 0:t.ecModel.getComponent("dataset",e.datasetIndex||0)}function _s(t,e){return ws(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ws(t,e,i,n,o,a){function r(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?eD.Might:eD.Not:e&&"-"!==t?eD.Must:void 0}var s,l=5;if(I(t))return eD.Not;var u,h;if(n){var c=n[a];S(c)?(u=c.name,h=c.type):b(c)&&(u=c)}if(null!=h)return"ordinal"===h?eD.Must:eD.Not;if(e===jA)if(i===tD){for(var d=t[a],f=0;f<(d||[]).length&&l>f;f++)if(null!=(s=r(d[o+f])))return s}else for(var f=0;ff;f++){var p=t[o+f];if(p&&null!=(s=r(p[a])))return s}else if(e===qA){if(!u)return eD.Not;for(var f=0;ff;f++){var g=t[f];if(g&&null!=(s=r(g[u])))return s}}else if(e===KA){if(!u)return eD.Not;var d=t[u];if(!d||I(d))return eD.Not;for(var f=0;ff;f++)if(null!=(s=r(d[f])))return s}else if(e===YA)for(var f=0;ff;f++){var g=t[f],m=io(g);if(!_(m))return eD.Not;if(null!=(s=r(m[a])))return s}return eD.Not}function bs(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,o=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=o&&t.name!==o}}function Ss(t,e){var i=t.color&&!t.colorLayer;f(e,function(e,a){"colorLayer"===a&&i||WA.hasClass(a)||("object"==typeof e?t[a]=t[a]?o(t[a],e,!1):n(e):null==t[a]&&(t[a]=e))})}function Ms(t){t=t,this.option={},this.option[nD]=1,this._componentsMap=B({series:[]}),this._seriesIndices,this._seriesIndicesMap,Ss(t,this._theme.option),o(t,ZA,!1),this.mergeOption(t)}function Is(t,e){_(e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t.get(e)||[]).slice()}),i}function Ts(t,e,i){var n=e.type?e.type:i?i.subType:WA.determineSubType(t,e);return n}function As(t,e){t._seriesIndicesMap=B(t._seriesIndices=p(e,function(t){return t.componentIndex})||[])}function Ds(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t.subType===e.subType}):t}function Cs(t){if(eS&&!t._seriesIndices)throw new Error("Option should contains series.")}function Ls(t){f(aD,function(e){this[e]=y(t[e],t)},this)}function ks(){this._coordinateSystems=[]}function Ps(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function Os(t,e,i){var n,o,a=[],r=[],s=t.timeline;if(t.baseOption&&(o=t.baseOption),(s||t.options)&&(o=o||{},a=(t.options||[]).slice()),t.media){o=o||{};var l=t.media;sD(l,function(t){t&&t.option&&(t.query?r.push(t):n||(n=t))})}return o||(o=t),o.timeline||(o.timeline=s),sD([o].concat(a).concat(p(r,function(t){return t.option})),function(t){sD(e,function(e){e(t,i)})}),{baseOption:o,timelineOptions:a,mediaDefault:n,mediaList:r}}function Es(t,e,i){var n={width:e,height:i,aspectratio:e/i},o=!0;return f(t,function(t,e){var i=e.match(cD);if(i&&i[1]&&i[2]){var a=i[1],r=i[2].toLowerCase();Ns(n[r],t,a)||(o=!1)}}),o}function Ns(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function zs(t,e){return t.join(",")===e.join(",")}function Rs(t,e){e=e||{},sD(e,function(e,i){if(null!=e){var n=t[i];if(WA.hasClass(i)){e=to(e),n=to(n);var o=oo(n,e);t[i]=uD(o,function(t){return t.option&&t.exist?hD(t.exist,t.option,!0):t.exist||t.option})}else t[i]=hD(n,e,!0)}})}function Bs(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=pD.length;n>i;i++){var a=pD[i],r=e.normal,s=e.emphasis;r&&r[a]&&(t[a]=t[a]||{},t[a].normal?o(t[a].normal,r[a]):t[a].normal=r[a],r[a]=null),s&&s[a]&&(t[a]=t[a]||{},t[a].emphasis?o(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function Vs(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,o=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,s(t[e],n)):t[e]=n),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o)}}function Gs(t){Vs(t,"itemStyle"),Vs(t,"lineStyle"),Vs(t,"areaStyle"),Vs(t,"label"),Vs(t,"labelLine"),Vs(t,"upperLabel"),Vs(t,"edgeLabel")}function Fs(t,e){var i=fD(t)&&t[e],n=fD(i)&&i.textStyle;if(n)for(var o=0,a=bI.length;a>o;o++){var e=bI[o];n.hasOwnProperty(e)&&(i[e]=n[e])}}function Ws(t){t&&(Gs(t),Fs(t,"label"),t.emphasis&&Fs(t.emphasis,"label"))}function Hs(t){if(fD(t)){Bs(t),Gs(t),Fs(t,"label"),Fs(t,"upperLabel"),Fs(t,"edgeLabel"),t.emphasis&&(Fs(t.emphasis,"label"),Fs(t.emphasis,"upperLabel"),Fs(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Bs(e),Ws(e));var i=t.markLine;i&&(Bs(i),Ws(i));var n=t.markArea;n&&Ws(n);var o=t.data;if("graph"===t.type){o=o||t.nodes;var a=t.links||t.edges;if(a&&!I(a))for(var r=0;r=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&m>0||0>=h&&0>m){h+=m,f=m;break}}}return n[0]=h,n[1]=f,n});r.hostModel.setData(l),e.data=l})}function Ks(t,e){ls.isInstance(t)||(t=ls.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;if(n===JA){if(eS&&null==e)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=i}var o=wD[n===jA?n+"_"+t.seriesLayoutBy:n];eS&&O(o,"Invalide sourceFormat: "+n),r(this,o)}function $s(){return this._data.length}function Js(t){return this._data[t]}function Qs(t){for(var e=0;ee.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pl(t,e){f(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,x(gl,e))})}function gl(t){var e=ml(t);e&&e.setOutputEnd(this.count())}function ml(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var o=n.agentStubMap;o&&(n=o.get(t.uid))}return n}}function vl(){this.group=new xM,this.uid=xr("viewChart"),this.renderTask=al({plan:_l,reset:wl}),this.renderTask.context={view:this}}function yl(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!Ha(t)))for(var n=0,o=t.childCount();o>n;n++)yl(t.childAt(n),e,i)}function xl(t,e,i){var n=uo(t,e),o=e&&null!=e.highlightKey?Za(e.highlightKey):null;null!=n?f(to(n),function(e){yl(t.getItemGraphicEl(e),i,o)}):t.eachItemGraphicEl(function(t){yl(t,i,o)})}function _l(t){return ED(t.model)}function wl(t){var e=t.model,i=t.ecModel,n=t.api,o=t.payload,a=e.pipelineContext.progressiveRender,r=t.view,s=o&&OD(o).updateMethod,l=a?"incrementalPrepareRender":s&&r[s]?s:"render";return"render"!==l&&r[l](e,i,n,o),zD[l]}function bl(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(r,s||[])}var o,a,r,s,l,u=0,h=0,c=null;e=e||0;var d=function(){o=(new Date).getTime(),r=this,s=arguments;var t=l||e,d=l||i;l=null,a=o-(d?u:h)-t,clearTimeout(c),d?c=setTimeout(n,t):a>=0?n():c=setTimeout(n,-a),u=o};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function Sl(t,e,i,n){var o=t[e];if(o){var a=o[RD]||o,r=o[VD],s=o[BD];if(s!==i||r!==n){if(null==i||!n)return t[e]=a;o=t[e]=bl(a,i,"debounce"===n),o[RD]=a,o[VD]=n,o[BD]=i}return o}}function Ml(t,e){var i=t[e];i&&i[RD]&&(t[e]=i[RD])}function Il(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=B()}function Tl(t,e,i,n,o){function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}o=o||{};var r;f(e,function(e){if(!o.visualType||o.visualType===e.visualType){var s=t._stageTaskMap.get(e.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){a(o,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),XD(u,n);var d=t.getPerformArgs(u,o.block);c.each(function(t){t.perform(d)}),r|=u.perform(d)}else l&&l.each(function(s){a(o,s)&&s.dirty();var l=t.getPerformArgs(s,o.block);l.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),XD(s,n),r|=s.perform(l)})}}),t.unfinished|=r}function Al(t,e,i,n,o){function a(i){var a=i.uid,s=r.get(a)||r.set(a,al({plan:Ol,reset:El,count:zl}));s.context={model:i,ecModel:n,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Rl(t,i,s)}var r=i.seriesTaskMap||(i.seriesTaskMap=B()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(a):s?n.eachRawSeriesByType(s,a):l&&l(n,o).each(a);var u=t._pipelineMap;r.each(function(t,e){u.get(e)||(t.dispose(),r.removeKey(e))})}function Dl(t,e,i,n,o){function a(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,al({reset:Ll,onDirty:Pl})),r.dirty()),n.context={model:e,overallProgress:h,modifyOutputEnd:c},n.agent=r,n.__block=h,Rl(t,e,n)}var r=i.overallTask=i.overallTask||al({reset:Cl});r.context={ecModel:n,api:o,overallReset:e.overallReset,scheduler:t};var s=r.agentStubMap=r.agentStubMap||B(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,a):u?u(n,o).each(a):(h=!1,f(n.getSeries(),a));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),r.dirty(),s.removeKey(e))})}function Cl(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ll(t){return t.overallProgress&&kl}function kl(){this.agent.dirty(),this.getDownstream().dirty()}function Pl(){this.agent&&this.agent.dirty()}function Ol(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function El(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=to(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?p(e,function(t,e){return Nl(e)}):YD}function Nl(t){return function(e,i){var n=i.data,o=i.resetDefines[t];if(o&&o.dataEach)for(var a=e.start;a0?parseInt(n,10)/100:n?parseFloat(n):0;var o=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,o)}i=i.nextSibling}}function Hl(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),s(e.__inheritedStyle,t.__inheritedStyle))}function Zl(t){for(var e=E(t).split(oC),i=[],n=0;n0;a-=2){var r=o[a],s=o[a-1];switch(n=n||Oe(),s){case"translate":r=E(r).split(oC),Re(n,n,[parseFloat(r[0]),parseFloat(r[1]||0)]);break;case"scale":r=E(r).split(oC),Ve(n,n,[parseFloat(r[0]),parseFloat(r[1]||r[0])]);break;case"rotate":r=E(r).split(oC),Be(n,n,parseFloat(r[0]));break;case"skew":r=E(r).split(oC),console.warn("Skew transform is not supported yet");break;case"matrix":var r=E(r).split(oC);n[0]=parseFloat(r[0]),n[1]=parseFloat(r[1]),n[2]=parseFloat(r[2]),n[3]=parseFloat(r[3]),n[4]=parseFloat(r[4]),n[5]=parseFloat(r[5])}}e.setLocalTransform(n)}}function jl(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n={};hC.lastIndex=0;for(var o;null!=(o=hC.exec(e));)n[o[1]]=o[2];for(var a in sC)sC.hasOwnProperty(a)&&null!=n[a]&&(i[sC[a]]=n[a]);return i}function ql(t,e,i){var n=e/t.width,o=i/t.height,a=Math.min(n,o),r=[a,a],s=[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+i/2];return{scale:r,position:s}}function Kl(t,e){var i=new Fl;return i.parse(t,e)}function $l(t,e){return function(i,n,o){return!e&&this._disposed?void pu(this.id):(i=i&&i.toLowerCase(),void AS.prototype[t].call(this,i,n,o))}}function Jl(){AS.call(this)}function Ql(t,e,i){function o(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=XC[e]),this.id,this.group,this._dom=t;var a="canvas";eS&&(a=("undefined"==typeof window?global:window).__ECHARTS__DEFAULT__RENDERER__||a);var r=this._zr=qn(t,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=bl(y(r.flush,r),17);var e=n(e);e&&yD(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new ks;var s=this._api=yu(this);Ei(UC,o),Ei(WC,o),this._scheduler=new Il(this,s,WC,UC),AS.call(this,this._ecEventProcessor=new xu),this._messageCenter=new Jl,this._initEvents(),this.resize=y(this.resize,this),this._pendingActions=[],r.animation.on("frame",this._onframe,this),su(r,this),N(this)}function tu(t,e,i){if(this._disposed)return void pu(this.id);var n,o=this._model,a=this._coordSysMgr.getCoordinateSystems();e=co(o,e);for(var r=0;re.get("hoverLayerThreshold")&&!aS.node&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse(function(t){t.useHoverLayer=!0})}})}function mu(t,e){var i=t.get("blendMode")||null;eS&&!aS.canvasSupported&&i&&"source-over"!==i&&console.warn("Only canvas support blendMode"),e.group.traverse(function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",i)})})}function vu(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function yu(t){var e=t._coordSysMgr;return r(new Ls(t),{getCoordinateSystems:y(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function xu(){this.eventInfo}function _u(t){function e(t,e){for(var i=0;i65535?sL:uL}function th(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function eh(t,e){f(hL.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(cL,function(i){t[i]=n(e[i])}),t._calculationInfo=r(e._calculationInfo)}function ih(t,e,i,n,o){var a=rL[e.type],r=n-1,s=e.name,l=t[s][r];if(l&&l.lengthc;c+=i)t[s].push(new a(Math.min(o-c,i)))}function nh(t){var e=t._invertedIndicesMap;f(e,function(i,n){var o=t._dimensionInfos[n],a=o.ordinalMeta;if(a){i=e[n]=new lL(a.categories.length);for(var r=0;r=0?this._indices[t]:-1}function sh(t,e){var i=t._idList[e];return null==i&&(i=oh(t,t._idDimIdx,e)),null==i&&(i=aL+e),i}function lh(t){return _(t)||(t=[t]),t}function uh(t,e){for(var i=0;i=0?(o[s]=ch(a[s]),n._rawExtent[s]=dh(),n._extent[s]=null):o[s]=a[s])}return n}function ch(t){for(var e=new Array(t.length),i=0;id;d++){var p=a[d]=r({},S(a[d])?a[d]:{name:a[d]}),g=p.name,m=h[d]=new Ju;null!=g&&null==l.get(g)&&(m.name=m.displayName=g,l.set(g,d)),null!=p.type&&(m.type=p.type),null!=p.displayName&&(m.displayName=p.displayName)}var v=i.encodeDef;!v&&i.encodeDefaulter&&(v=i.encodeDefaulter(e,c)),v=B(v),v.each(function(t,e){if(t=to(t).slice(),1===t.length&&!b(t[0])&&t[0]<0)return void v.set(e,!1);var i=v.set(e,[]);f(t,function(t,n){b(t)&&(t=l.get(t)),null!=t&&c>t&&(i[n]=t,o(h[t],e,n))})});var y=0;f(t,function(t){var e,t,i,a;if(b(t))e=t,t={};else{e=t.name;var r=t.ordinalMeta;t.ordinalMeta=null,t=n(t),t.ordinalMeta=r,i=t.dimsDef,a=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var l=v.get(e);if(l!==!1){var l=to(l);if(!l.length)for(var u=0;u<(i&&i.length||1);u++){for(;yI;I++){var m=h[I]=h[I]||new Ju,T=m.coordDim;null==T&&(m.coordDim=gh(M,u,w),m.coordDimIndex=0,(!x||0>=_)&&(m.isExtraCoord=!0),_--),null==m.name&&(m.name=gh(m.coordDim,l)),null!=m.type||_s(e,I,m.name)!==eD.Must&&(!m.isExtraCoord||null==m.otherDims.itemName&&null==m.otherDims.seriesName)||(m.type="ordinal")}return h}function ph(t,e,i,n){var o=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return f(e,function(t){var e=t.dimsDef;e&&(o=Math.max(o,e.length))}),o}function gh(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}function mh(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=B(),this.categoryAxisMap=B(),this.firstCategoryDimIndex=null}function vh(t){var e=t.get("coordinateSystem"),i=new mh(e),n=mL[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function yh(t){return"category"===t.get("type")}function xh(t,e,i){i=i||{};var n,o,a,r,s=i.byIndex,l=i.stackedCoordDimension,u=!(!t||!t.get("stack"));if(f(e,function(t,i){b(t)&&(e[i]=t={name:t}),u&&!t.isExtraCoord&&(s||n||!t.ordinalMeta||(n=t),o||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(o=t))}),!o||s||n||(s=!0),o){a="__\x00ecstackresult",r="__\x00ecstackedover",n&&(n.createInvertedIndices=!0);var h=o.coordDim,c=o.type,d=0;f(e,function(t){t.coordDim===h&&d++}),e.push({name:a,coordDim:h,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:r,coordDim:r,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:n&&n.name,isStackedByIndex:s,stackedOverDimension:r,stackResultDimension:a}}function _h(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function wh(t,e){return _h(t,e)?t.getCalculationInfo("stackResultDimension"):e}function bh(t,e,i){i=i||{},ls.isInstance(t)||(t=ls.seriesDataToSource(t));var n,o=e.get("coordinateSystem"),a=ks.get(o),r=vh(e);r&&(n=p(r.coordSysDims,function(t){var e={name:t},i=r.axisMap.get(t);if(i){var n=i.get("type");e.type=Ku(n)}return e})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]);var s,l,u=gL(t,{coordDimensions:n,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?x(vs,n,e):null});r&&f(u,function(t,e){var i=t.coordDim,n=r.categoryAxisMap.get(i);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(u[s].otherDims.itemName=0);var h=xh(e,u),c=new dL(u,e);c.setCalculationInfo(h);var d=null!=s&&Sh(t)?function(t,e,i,n){return n===s?i:this.defaultDimValueGetter(t,e,i,n)}:null;return c.hasItemOption=!1,c.initData(t,null,d),c}function Sh(t){if(t.sourceFormat===YA){var e=Mh(t.data||[]);return null!=e&&!_(io(e))}}function Mh(t){for(var e=0;er&&(r=o.interval=i),null!=n&&r>n&&(r=o.interval=n);var s=o.intervalPrecision=Lh(r),l=o.niceTickExtent=[_L(Math.ceil(t[0]/r)*r,s),_L(Math.floor(t[1]/r)*r,s)];return Ph(l,t),o}function Lh(t){return Dr(t)+2}function kh(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Ph(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),kh(t,0,e),kh(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Oh(t){return t.get("stack")||SL+t.seriesIndex}function Eh(t){return t.dim+t.index}function Nh(t){var e=[],i=t.axis,n="axis0";if("category"===i.type){for(var o=i.getBandWidth(),a=0;as;++s){var u=o.get(r,s);e[a]?e[a].push(u):e[a]=[u]}});var i=[];for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];if(o){o.sort(function(t,e){return t-e});for(var a=null,r=1;r0&&(a=null===a?s:Math.min(a,s))}i[n]=a}}return i}function Bh(t){var e=Rh(t),i=[];return f(t,function(t){var n,o=t.coordinateSystem,a=o.getBaseAxis(),r=a.getExtent();if("category"===a.type)n=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],u=Math.abs(r[1]-r[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);n=l?u/c*l:u}else{var d=t.getData();n=Math.abs(r[1]-r[0])/d.count()}var f=Mr(t.get("barWidth"),n),p=Mr(t.get("barMaxWidth"),n),g=Mr(t.get("barMinWidth")||1,n),m=t.get("barGap"),v=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:Eh(a),stackId:Oh(t)})}),Vh(i)}function Vh(t){var e={};f(t,function(t){var i=t.axisKey,n=t.bandWidth,o=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;e[i]=o;var r=t.stackId;a[r]||o.autoWidthCount++,a[r]=a[r]||{width:0,maxWidth:0};var s=t.barWidth;s&&!a[r].width&&(a[r].width=s,s=Math.min(o.remainedWidth,s),o.remainedWidth-=s);var l=t.barMaxWidth;l&&(a[r].maxWidth=l);var u=t.barMinWidth;u&&(a[r].minWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var c=t.barCategoryGap;null!=c&&(o.categoryGap=c)});var i={};return f(e,function(t,e){i[e]={};var n=t.stacks,o=t.bandWidth,a=Mr(t.categoryGap,o),r=Mr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-a)/(l+(l-1)*r);u=Math.max(u,0),f(n,function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){var n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,s-=n+r*n,l--}else{var n=u;e&&n>e&&(n=Math.min(e,s)),i&&i>n&&(n=i),n!==u&&(t.width=n,s-=n+r*n,l--)}}),u=(s-a)/(l+(l-1)*r),u=Math.max(u,0);var h,c=0;f(n,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+r)}),h&&(c-=h.width*r);var d=-c/2;f(n,function(t,n){i[e][n]=i[e][n]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+r)})}),i}function Gh(t,e,i){if(t&&e){var n=t[Eh(e)];return null!=n&&null!=i&&(n=n[Oh(i)]),n}}function Fh(t,e){var i=zh(t,e),n=Bh(i),o={};f(i,function(t){var e=t.getData(),i=t.coordinateSystem,a=i.getBaseAxis(),r=Oh(t),s=n[Eh(a)][r],l=s.offset,u=s.width,h=i.getOtherAxis(a),c=t.get("barMinHeight")||0;o[r]=o[r]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(h.dim),f=e.mapDimension(a.dim),p=_h(e,d),g=h.isHorizontal(),m=Zh(a,h,p),v=0,y=e.count();y>v;v++){var x=e.get(d,v),_=e.get(f,v),w=x>=0?"p":"n",b=m;p&&(o[r][_]||(o[r][_]={p:m,n:m}),b=o[r][_][w]);var S,M,I,T;if(g){var A=i.dataToPoint([x,_]);S=b,M=A[1]+l,I=A[0]-m,T=u,Math.abs(I)I?-1:1)*c),isNaN(I)||p&&(o[r][_][w]+=I)}else{var A=i.dataToPoint([_,x]);S=A[0]+l,M=b,I=u,T=A[1]-m,Math.abs(T)=T?-1:1)*c),isNaN(T)||p&&(o[r][_][w]+=T)}e.setItemLayout(v,{x:S,y:M,width:I,height:T})}},this)}function Wh(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Hh(t){return t.pipelineContext&&t.pipelineContext.large}function Zh(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Uh(t,e){return GL(t,VL(e))}function Xh(t,e){var i,n,o,a=t.type,r=e.getMin(),s=e.getMax(),l=t.getExtent();"ordinal"===a?i=e.getCategories().length:(n=e.get("boundaryGap"),_(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(eS&&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.'),n=[0,0]),n[0]=Mr(n[0],1),n[1]=Mr(n[1],1),o=l[1]-l[0]||Math.abs(l[0])),"dataMin"===r?r=l[0]:"function"==typeof r&&(r=r({min:l[0],max:l[1]})),"dataMax"===s?s=l[1]:"function"==typeof s&&(s=s({min:l[0],max:l[1]}));var u=null!=r,h=null!=s;null==r&&(r="ordinal"===a?i?0:0/0:l[0]-n[0]*o),null==s&&(s="ordinal"===a?i?i-1:0/0:l[1]+n[1]*o),(null==r||!isFinite(r))&&(r=0/0),(null==s||!isFinite(s))&&(s=0/0),t.setBlank(A(r)||A(s)||"ordinal"===a&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(r>0&&s>0&&!u&&(r=0),0>r&&0>s&&!h&&(s=0));var c=e.ecModel;if(c&&"time"===a){var d,p=zh("bar",c);if(f(p,function(t){d|=t.getBaseAxis()===e.axis}),d){var g=Bh(p),m=Yh(r,s,e,g);r=m.min,s=m.max}}return{extent:[r,s],fixMin:u,fixMax:h}}function Yh(t,e,i,n){var o=i.axis.getExtent(),a=o[1]-o[0],r=Gh(n,i.axis);if(void 0===r)return{min:t,max:e};var s=1/0;f(r,function(t){s=Math.min(t.offset,s)});var l=-1/0;f(r,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/a,d=h/c-h;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function jh(t,e){var i=Xh(t,e),n=i.extent,o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var r=e.get("interval");null!=r&&t.setInterval&&t.setInterval(r)}function qh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new xL(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new bL;default:return(Ih.getClass(e)||bL).create(t)}}function Kh(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function $h(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(n,o){return null!=i&&(o=n-i),e(Jh(t,n),o)}:function(e){return t.scale.getLabel(e)}}function Jh(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Qh(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,o,a="category"===t.type,r=i.getExtent();a?o=i.count():(n=i.getTicks(),o=n.length);var s,l=t.getLabelModel(),u=$h(t),h=1;o>40&&(h=Math.ceil(o/40));for(var c=0;o>c;c+=h){var d=n?n[c]:r[0]+c,f=u(d),p=l.getTextRect(f),g=tc(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function tc(t,e){var i=e*Math.PI/180,n=t.plain(),o=n.width,a=n.height,r=o*Math.abs(Math.cos(i))+Math.abs(a*Math.sin(i)),s=o*Math.abs(Math.sin(i))+Math.abs(a*Math.cos(i)),l=new Ti(n.x,n.y,r,s);return l}function ec(t){var e=t.get("interval");return null==e?"auto":e}function ic(t){return"category"===t.type&&0===ec(t.getLabelModel())}function nc(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function oc(t,e,i,n,o,a,r){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?Sa(t.slice(8),new Ti(e,i,n,o),r?"center":"cover"):0===t.indexOf("path://")?ba(t.slice(7),{},new Ti(e,i,n,o),r?"center":"cover"):new tk({shape:{symbolType:t,x:e,y:i,width:n,height:o}}),l.__isEmptyBrush=s,l.setColor=nc,l.setColor(a),l}function ac(t){return bh(t.getSource(),t)}function rc(t,e){var i=e;mr.isInstance(e)||(i=new mr(e),c(i,XL));var n=qh(i);return n.setExtent(t[0],t[1]),jh(n,i),n}function sc(t){c(t,XL)}function lc(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=a,o=s,a=l,n.push([s/i,l/i])}return n}function fc(t){return"category"===t.type?gc(t):yc(t)}function pc(t,e){return"category"===t.type?vc(t,e):{ticks:t.scale.getTicks()}}function gc(t){var e=t.getLabelModel(),i=mc(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function mc(t,e){var i=xc(t,"labels"),n=ec(e),o=_c(i,n);if(o)return o;var a,r;return w(n)?a=Tc(t,n):(r="auto"===n?bc(t):n,a=Ic(t,r)),wc(i,n,{labels:a,labelCategoryInterval:r})}function vc(t,e){var i=xc(t,"ticks"),n=ec(e),o=_c(i,n);if(o)return o;var a,r;if((!e.get("show")||t.scale.isBlank())&&(a=[]),w(n))a=Tc(t,n,!0);else if("auto"===n){var s=mc(t,t.getLabelModel());r=s.labelCategoryInterval,a=p(s.labels,function(t){return t.tickValue})}else r=n,a=Ic(t,r,!0);return wc(i,n,{ticks:a,tickCategoryInterval:r})}function yc(t){var e=t.scale.getTicks(),i=$h(t);return{labels:p(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function xc(t,e){return ak(t)[e]||(ak(t)[e]=[])}function _c(t,e){for(var i=0;i40&&(s=Math.max(1,Math.floor(r/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=a[1];l+=s){var p=0,g=0,m=Ui(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=ak(t.model),w=t.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return null!=b&&null!=S&&Math.abs(b-x)<=1&&Math.abs(S-r)<=1&&b>x&&_.axisExtend0===w[0]&&_.axisExtend1===w[1]?x=b:(_.lastTickCount=r,_.lastAutoInterval=x,_.axisExtend0=w[0],_.axisExtend1=w[1]),x}function Mc(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Ic(t,e,i){function n(t){l.push(i?t:{formattedLabel:o(t),rawLabel:a.getLabel(t),tickValue:t})}var o=$h(t),a=t.scale,r=a.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=r[0],c=a.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d=ic(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&h!==r[0]&&n(r[0]);for(var g=h;g<=r[1];g+=u)n(g);return p&&g-u!==r[1]&&n(r[1]),l}function Tc(t,e,i){var n=t.scale,o=$h(t),a=[];return f(n.getTicks(),function(t){var r=n.getLabel(t);e(t,r)&&a.push(i?t:{formattedLabel:o(t),rawLabel:r,tickValue:t})}),a}function Ac(t,e){var i=t[1]-t[0],n=e,o=i/n/2;t[0]+=o,t[1]-=o}function Dc(t,e,i,n){function o(t,e){return t=Ir(t),e=Ir(e),d?t>e:e>t}var a=e.length;if(t.onBand&&!i&&a){var r,s,l=t.getExtent();if(1===a)e[0].coord=l[0],r=e[1]={coord:l[0]};else{var u=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/u;f(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[a-1].tickValue,r={coord:e[a-1].coord+h*s},e.push(r)}var d=l[0]>l[1];o(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&o(l[0],e[0].coord)&&e.unshift({coord:l[0]}),o(l[1],r.coord)&&(n?r.coord=l[1]:e.pop()),n&&o(r.coord,l[1])&&e.push({coord:l[1]})}}function Cc(t){return this._axes[t]}function Lc(t){ck.call(this,t)}function kc(t,e){return e.type||(e.data?"category":"value")}function Pc(t,e){return t.getCoordSysModel()===e}function Oc(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function Ec(t,e,i,n){function o(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return a?[a]:[]};var a,r=t[e],s=i.model,l=s.get("axisLine.onZero"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)Nc(r[u])&&(a=r[u]);else for(var h in r)if(r.hasOwnProperty(h)&&Nc(r[h])&&!n[o(r[h])]){a=r[h];break}a&&(n[o(a)]=!0)}}function Nc(t){return t&&"category"!==t.type&&"time"!==t.type&&Kh(t)}function zc(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function Rc(t){return p(_k,function(e){var i=t.getReferringComponents(e)[0];if(eS&&!i)throw new Error(e+' "'+D(t.get(e+"Index"),t.get(e+"Id"),0)+'" not found');return i})}function Bc(t){return"cartesian2d"===t.get("coordinateSystem")}function Vc(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return nl(t,e,i[0]);if(n){for(var o=[],a=0;a0?"bottom":"top":o.width>0?"left":"right";l||Gc(t.style,f,n,u,a,i,g),jc(o)&&(f.fill=f.stroke="none"),Fa(t,f)}function Kc(t,e){var i=t.get(Ik)||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,o)}function $c(t,e,i){var n=t.getData(),o=[],a=n.getLayout("valueAxisHorizontal")?1:0;o[1-a]=n.getLayout("valueAxisStart");var r=n.getLayout("largeDataIndices"),s=n.getLayout("barWidth"),l=t.getModel("backgroundStyle"),u=t.get("showBackground",!0);if(u){var h=n.getLayout("largeBackgroundPoints"),c=[];c[1-a]=n.getLayout("backgroundStart");var d=new Pk({shape:{points:h},incremental:!!i,__startPoint:c,__baseDimIdx:a,__largeDataIndices:r,__barWidth:s,silent:!0,z2:0});td(d,l,n),e.add(d)}var f=new Pk({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:o,__baseDimIdx:a,__largeDataIndices:r,__barWidth:s});e.add(f),Qc(f,t,n),f.seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",Ok),f.on("mousemove",Ok))}function Jc(t,e,i){var n=t.__baseDimIdx,o=1-n,a=t.shape.points,r=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[o];Tk[0]=e,Tk[1]=i;for(var u=Tk[n],h=Tk[1-n],c=u-s,d=u+s,f=0,p=a.length/2;p>f;f++){var g=2*f,m=a[g+n],v=a[g+o];if(m>=c&&d>=m&&(v>=l?h>=l&&v>=h:h>=v&&l>=h))return r[f]}return-1}function Qc(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),o=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(o),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function td(t,e,i){var n=e.get("borderColor")||e.get("color"),o=e.getItemStyle(["color","borderColor"]);t.useStyle(o),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function ed(t,e,i){var n,o="polar"===i.type;return n=o?i.getArea():i.grid.getRect(),o?{cx:n.cx,cy:n.cy,r0:t?n.r0:e.r0,r:t?n.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:n.x,y:t?n.y:e.y,width:t?e.width:n.width,height:t?n.height:e.height}}function id(t,e,i){var n="polar"===t.type?BT:XT;return new n({shape:ed(e,i,t),silent:!0,z2:0})}function nd(t,e,i,n){var o,a,r=kr(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Pr(r-Ek/2)?(a=l?"bottom":"top",o="center"):Pr(r-1.5*Ek)?(a=l?"top":"bottom",o="center"):(a="middle",o=1.5*Ek>r&&r>Ek/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function od(t,e,i){if(!ic(t.axis)){var n=t.get("axisLabel.showMinLabel"),o=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var a=e[0],r=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],d=i[i.length-2];n===!1?(ad(a),ad(u)):rd(a,r)&&(n?(ad(r),ad(h)):(ad(a),ad(u))),o===!1?(ad(s),ad(c)):rd(l,s)&&(o?(ad(l),ad(d)):(ad(s),ad(c)))}}function ad(t){t&&(t.ignore=!0)}function rd(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var o=Ee([]);return Be(o,o,-t.rotation),i.applyTransform(ze([],o,t.getLocalTransform())),n.applyTransform(ze([],o,e.getLocalTransform())),i.intersect(n)}}function sd(t){return"middle"===t||"center"===t}function ld(t,e,i,n,o){for(var a=[],r=[],s=[],l=0;l=0||t===e}function yd(t){var e=xd(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,o=i.option,a=i.get("status"),r=i.get("value");null!=r&&(r=n.parse(r));var s=wd(i);null==a&&(o.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r0?i=n[0]:n[1]<0&&(i=n[1]),i}function Bd(t,e,i,n){var o=0/0;t.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart);var a=t.baseDataOffset,r=[];return r[a]=i.get(t.baseDim,n),r[1-a]=o,e.dataToPoint(r)}function Vd(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function Gd(t){return isNaN(t[0])||isNaN(t[1])}function Fd(t,e,i,n,o,a,r,s,l,u){return"none"!==u&&u?Wd.apply(this,arguments):Hd.apply(this,arguments)}function Wd(t,e,i,n,o,a,r,s,l,u,h){for(var c=0,d=i,f=0;n>f;f++){var p=e[d];if(d>=o||0>d)break;if(Gd(p)){if(h){d+=a;continue}break}if(d===i)t[a>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;oP(rP,g),rP[m]=g[m]+v,oP(sP,p),sP[m]=p[m]-v,t.bezierCurveTo(rP[0],rP[1],sP[0],sP[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=a}return f}function Hd(t,e,i,n,o,a,r,s,l,u,h){for(var c=0,d=i,f=0;n>f;f++){var p=e[d];if(d>=o||0>d)break;if(Gd(p)){if(h){d+=a;continue}break}if(d===i)t[a>0?"moveTo":"lineTo"](p[0],p[1]),oP(rP,p);else if(l>0){var g=d+a,m=e[g];if(h)for(;m&&Gd(e[g]);)g+=a,m=e[g];var v=.5,y=e[c],m=e[g];if(!m||Gd(m))oP(sP,p);else{Gd(m)&&!h&&(m=p),Y(aP,m,y);var x,_;if("x"===u||"y"===u){var w="x"===u?0:1;x=Math.abs(p[w]-y[w]),_=Math.abs(p[w]-m[w])}else x=SS(p,y),_=SS(p,m);v=_/(_+x),nP(sP,p,aP,-l*(1-v))}eP(rP,rP,s),iP(rP,rP,r),eP(sP,sP,s),iP(sP,sP,r),t.bezierCurveTo(rP[0],rP[1],sP[0],sP[1],p[0],p[1]),nP(rP,p,aP,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=a}return f}function Zd(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var o=0;on[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}function Ud(t,e){if(t.length===e.length){for(var i=0;io;o++)n.push(Bd(i,t,e,o));return n}function qd(t,e,i){for(var n=e.getBaseAxis(),o="x"===n.dim||"radius"===n.dim?0:1,a=[],r=0;r=0;a--){var r=i[a].dimension,s=t.dimensions[r],l=t.getDimensionInfo(s);if(n=l&&l.coordDim,"x"===n||"y"===n){o=i[a];break}}if(!o)return void(eS&&console.warn("Visual map on line style only support x or y dimension."));var u=e.getAxis(n),h=p(o.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=o.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var g=10,m=h[0].coord-g,v=h[c-1].coord+g,y=v-m;if(.001>y)return"transparent";f(h,function(t){t.offset=(t.coord-m)/y}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var x=new tA(0,0,0,0,h,!0);return x[n]=m,x[n+"2"]=v,x}}function $d(t,e,i){var n=t.get("showAllSymbol"),o="auto"===n;if(!n||o){var a=i.getAxesByScale("ordinal")[0];if(a&&(!o||!Jd(a,e))){var r=e.mapDimension(a.dim),s={};return f(a.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function Jd(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),r=0;o>r;r+=a)if(1.5*Dd.getSymbolSize(e,r)[t.isHorizontal()?1:0]>n)return!1;return!0}function Qd(t,e,i){if("cartesian2d"===t.type){var n=t.getBaseAxis().isHorizontal(),o=Wc(t,e,i);if(!i.get("clip",!0)){var a=o.shape,r=Math.max(a.width,a.height);n?(a.y-=r,a.height+=2*r):(a.x-=r,a.width+=2*r)}return o}return Hc(t,e,i)}function tf(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){var i=e();return i.indexOfName(t)>=0},this.indexOfName=function(e){var i=t();return i.indexOfName(e)},this.getItemVisual=function(e,i){var n=t();return n.getItemVisual(e,i)}}function ef(t,e,i,n){var o=e.getData(),a=this.dataIndex,r=o.getName(a),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:r,seriesId:e.id}),o.each(function(t){nf(o.getItemGraphicEl(t),o.getItemLayout(t),e.isSelected(o.getName(t)),s,i)})}function nf(t,e,i,n,o){var a=(e.startAngle+e.endAngle)/2,r=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[r*l,s*l];o?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function of(t,e){xM.call(this);var i=new BT({z2:2}),n=new HT,o=new ET;this.add(i),this.add(n),this.add(o),this.updateData(t,e,!0)}function af(t,e,i,n,o,a,r,s,l,u){function h(e,i,n){for(var o=e;i>o&&!(t[o].y+n>l+r);o++)if(t[o].y+=n,o>e&&i>o+1&&t[o+1].y>t[o].y+t[o].height)return void c(o,n/2);c(i-1,n/2)}function c(e,i){for(var n=e;n>=0&&!(t[n].y-i0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function d(t,e,i,n,o,a){for(var r=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;l>s;s++)if("none"===t[s].labelAlignTo){var u=Math.abs(t[s].y-n),h=t[s].len,c=t[s].len2,d=o+h>u?Math.sqrt((o+h+c)*(o+h+c)-u*u):Math.abs(t[s].x-i);e&&d>=r&&(d=r-10),!e&&r>=d&&(d=r+10),t[s].x=i+d*a,r=d}}t.sort(function(t,e){return t.y-e.y});for(var f,p=0,g=t.length,m=[],v=[],y=0;g>y;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var x=t[y].x-u;t[y].linePoints[1][0]+=x,t[y].x=u}f=t[y].y-p,0>f&&h(y,g,-f,o),p=t[y].y+t[y].height}0>r-p&&c(g-1,p-r);for(var y=0;g>y;y++)t[y].y>=i?v.push(t[y]):m.push(t[y]);d(m,!1,e,i,n,o),d(v,!0,e,i,n,o)}function rf(t,e,i,n,o,a,r,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d0?"P":"N",a=n.getVisual("borderColor"+o)||n.getVisual("color"+o),r=i.getModel(EP).getItemStyle(zP);e.useStyle(r),e.style.fill=null,e.style.stroke=a}function xf(t,e,i,n,o){var a;return a=i>n?-1:n>i?1:e>0?t.get(o,e-1)<=n?1:-1:1}function _f(t,e){var i,n=t.getBaseAxis(),o="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),a=Mr(C(t.get("barMaxWidth"),o),o),r=Mr(C(t.get("barMinWidth"),1),o),s=t.get("barWidth");return null!=s?Mr(s,o):Math.max(Math.min(o/2,a),r)}function wf(t,e,i){sk.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}function bf(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=p(t.getIndicatorModels(),function(t,e){var i="indicator_"+e,n=new wf(i,"log"===t.get("axisType")?new UL:new bL);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}function Sf(t,e){return s({show:e},t)}function Mf(t){return _(t)||(t=[+t,+t]),t}function If(t){return!isNaN(t[0])&&!isNaN(t[1])}function Tf(t){return[t.cx,t.cy]}function Af(){var t=mS();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}function Df(t,e,i){var n=t[1]-t[0];e=p(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}});var o=e.length,a=0;return function(t){for(var n=a;o>n;n++){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){a=n;break}}if(n===o)for(var n=a-1;n>=0;n--){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){a=n;break}}return n>=0&&o>n&&i[n]}}function Cf(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function Lf(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}function kf(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Rf(e,i,t),QP(i,function(i){QP(e.TRANSFERABLE_METHODS,function(e){i.wrapMethod(e,x(Pf,t))})}),e.wrapMethod("cloneShallow",x(Ef,t)),QP(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,x(Of,t))}),O(i[e.dataType]===e)}function Pf(t,e){if(zf(this)){var i=r({},this[tO]);i[this.dataType]=e,Rf(e,i,t)}else Bf(e,this.dataType,this[eO],t);return e}function Of(t,e){return t.struct&&t.struct.update(this),e}function Ef(t,e){return QP(e[tO],function(i,n){i!==e&&Bf(i.cloneShallow(),n,e,t)}),e}function Nf(t){var e=this[eO];return null==t||null==e?e:e[tO][t]}function zf(t){return t[eO]===t}function Rf(t,e,i){t[tO]={},QP(e,function(e,n){Bf(e,n,t,i)})}function Bf(t,e,i,n){i[tO][e]=t,t[eO]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=Nf}function Vf(t){this.root,this.data,this._nodes=[],this.hostModel=t}function Gf(t,e){var i=e.children;t.parentNode!==e&&(i.push(t),t.parentNode=e)}function Ff(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var r=i[a];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(r)}}function Wf(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,o=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){Yf(t);var a=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=jf(t,o,t.parentNode.hierNode.defaultAncestor||n[0],e)}function Hf(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Zf(t){return arguments.length?t:Qf}function Uf(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function Xf(t,e){return ts(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Yf(t){for(var e=t.children,i=e.length,n=0,o=0;--i>=0;){var a=e[i];a.hierNode.prelim+=n,a.hierNode.modifier+=n,o+=a.hierNode.change,n+=a.hierNode.shift+o}}function jf(t,e,i,n){if(e){for(var o=t,a=t,r=a.parentNode.children[0],s=e,l=o.hierNode.modifier,u=a.hierNode.modifier,h=r.hierNode.modifier,c=s.hierNode.modifier;s=qf(s),a=Kf(a),s&&a;){o=qf(o),r=Kf(r),o.hierNode.ancestor=t;var d=s.hierNode.prelim+c-a.hierNode.prelim-u+n(s,a);d>0&&(Jf($f(s,t,i),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=o.hierNode.modifier,h+=r.hierNode.modifier}s&&!qf(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),a&&!Kf(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=u-h,i=t)}return i}function qf(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Kf(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function $f(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function Jf(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function Qf(t,e){return t.parentNode===e.parentNode?1:2}function tp(){ZS.call(this)}function ep(t){this.name=t,this.zoomLimit,ZS.call(this),this._roamTransformable=new tp,this._rawTransformable=new tp,this._center,this._zoom}function ip(t,e,i,n){var o=i.seriesModel,a=o?o.coordinateSystem:null;return a===this?a[t](n):null}function np(t,e,i){var n=t.target,o=n.position;o[0]+=e,o[1]+=i,n.dirty()}function op(t,e,i,n){var o=t.target,a=t.zoomLimit,r=o.position,s=o.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var u=a.min||0,h=a.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,r[0]-=(i-r[0])*(c-1),r[1]-=(n-r[1])*(c-1),s[0]*=c,s[1]*=c,o.dirty()}function ap(t,e,i){var n=lp(t);n[e]=i}function rp(t,e,i){var n=lp(t),o=n[e];o===i&&(n[e]=null)}function sp(t,e){return!!lp(t)[e]}function lp(t){return t[oO]||(t[oO]={})}function up(t){this.pointerChecker,this._zr=t,this._opt={};var e=y,i=e(hp,this),o=e(cp,this),a=e(dp,this),r=e(fp,this),l=e(pp,this);AS.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,u){this.disable(),this._opt=s(n(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",i),t.on("mousemove",o),t.on("mouseup",a)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",r),t.on("pinch",l))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",o),t.off("mouseup",a),t.off("mousewheel",r),t.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function hp(t){if(!(Ie(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function cp(t){if(this._dragging&&vp("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!sp(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,o=this._y,a=e-n,r=i-o;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&ES(t.event),mp(this,"pan","moveOnMouseMove",t,{dx:a,dy:r,oldX:n,oldY:o,newX:e,newY:i})}}function dp(t){Ie(t)||(this._dragging=!1)}function fp(t){var e=vp("zoomOnMouseWheel",t,this._opt),i=vp("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),a=t.offsetX,r=t.offsetY;if(0!==n&&(e||i)){if(e){var s=o>3?1.4:o>1?1.2:1.1,l=n>0?s:1/s;gp(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:r})}if(i){var u=Math.abs(n),h=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);gp(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:a,originY:r})}}}function pp(t){if(!sp(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;gp(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function gp(t,e,i,n,o){t.pointerChecker&&t.pointerChecker(n,o.originX,o.originY)&&(ES(n.event),mp(t,e,i,n,o))}function mp(t,e,i,n,o){o.isAvailableBehavior=y(vp,null,i,n),t.trigger(e,o)}function vp(t,e,i){var n=i[t];return!t||n&&(!b(n)||e.event[n+"Key"])}function yp(t,e,i){var n=e.getComponentByElement(t.topTarget),o=n&&n.coordinateSystem;return n&&n!==i&&!aO[n.mainType]&&o&&o.model!==i}function xp(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function _p(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),i.symbolInnerColor=t.isExpand===!1&&0!==t.children.length?i.itemStyle.fill:"#fff",i}function wp(t,e,i,n,o,a){var r=!i,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),a=_p(s,l,a),u=t.tree.root,h=s.parentNode===u?s:s.parentNode||s,c=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,p=s.getLayout();r?(i=new Dd(t,e,a),i.attr("position",[f.x,f.y])):i.updateData(t,e,a),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=p.rawX,i.__radialRawY=p.rawY,n.add(i),t.setItemGraphicEl(e,i),nr(i,{position:[p.x,p.y]},o);var g=i.getSymbolPath();if("radial"===a.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&s.isExpand===!0){var w={};w.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,w.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,m=Math.atan2(w.y-x.y,w.x-x.x),0>m&&(m=2*Math.PI+m),v=w.xm&&(m=2*Math.PI+m),0===s.children.length||0!==s.children.length&&s.isExpand===!1?(v=p.xx.x,v||(m-=Math.PI));var b=v?"left":"right",S=a.labelModel.get("rotate"),M=S*(Math.PI/180);g.setStyle({textPosition:a.labelModel.get("position")||b,textRotation:null==S?-m:M,textOrigin:"center",verticalAlign:"middle"})}bp(o,s,u,i,f,d,p,n,a)}function bp(t,e,i,n,o,a,r,l,u){var h=u.edgeShape,c=n.__edge;if("curve"===h)e.parentNode&&e.parentNode!==i&&(c||(c=n.__edge=new KT({shape:Mp(u,o,o),style:s({opacity:0,strokeNoScale:!0},u.lineStyle)})),nr(c,{shape:Mp(u,a,r),style:s({opacity:1},u.lineStyle)},t));else if("polyline"===h)if("orthogonal"===u.layout){if(e!==i&&e.children&&0!==e.children.length&&e.isExpand===!0){for(var d=e.children,f=[],p=0;p=0;a--)n.push(o[a])}}function Dp(t,e){var i=Xf(t,e);t.layoutInfo=i;var n=t.get("layout"),o=0,a=0,r=null;"radial"===n?(o=2*Math.PI,a=Math.min(i.height,i.width)/2,r=Zf(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=i.width,a=i.height,r=Zf());var s=t.getData().tree.root,l=s.children[0];if(l){Ff(s),Tp(l,Wf,r),s.hierNode.modifier=-l.hierNode.prelim,Ap(l,Hf);var u=l,h=l,c=l;Ap(l,function(t){var e=t.getLayout().x;eh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:r(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=o/(h.getLayout().x+d+f),g=a/(c.depth-1||1),Ap(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=Uf(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=a/(h.getLayout().x+d+f),p=o/(c.depth-1||1),Ap(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:o-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):("TB"===y||"BT"===y)&&(p=o/(h.getLayout().x+d+f),g=a/(c.depth-1||1),Ap(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:a-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}function Cp(t,e,i){if(t&&u(e,t.type)>=0){var n=i.getData().tree.root,o=t.targetNode;if("string"==typeof o&&(o=n.getNodeById(o)),o&&n.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=n.getNodeById(a)))return{node:o}}}function Lp(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function kp(t,e){var i=Lp(t);return u(i,e)>=0}function Pp(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}function Op(t){var e=0;f(t.children,function(t){Op(t);var i=t.value;_(i)&&(i=i[0]),e+=i});var i=t.value;_(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),0>i&&(i=0),_(t.value)?t.value[0]=i:t.value=i}function Ep(t,e){var i=e.get("color");if(i){t=t||[];var n;if(f(t,function(t){var e=new mr(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),!n){var o=t[0]||(t[0]={});o.color=i.slice()}return t}}function Np(t){this.group=new xM,t.add(this.group)}function zp(t,e,i,n,o,a){var r=[[o?t:t-hO,e],[t+i,e],[t+i,e+n],[o?t:t-hO,e+n]];return!a&&r.splice(2,0,[t+i+hO,e+n/2]),!o&&r.push([t,e+n/2]),r}function Rp(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&Pp(i,e)}}function Bp(){var t,e=[],i={};return{add:function(t,n,o,a,r){return b(a)&&(r=a,a=0),i[t.id]?!1:(i[t.id]=1,e.push({el:t,target:n,time:o,delay:a,easing:r}),!0)},done:function(e){return t=e,this},start:function(){function n(){o--,o||(e.length=0,i={},t&&t())}for(var o=e.length,a=0,r=e.length;r>a;a++){var s=e[a];s.el.animateTo(s.target,s.time,s.delay,s.easing,n)}return this}}}function Vp(){return{nodeGroup:[],background:[],content:[]}}function Gp(t,e,i,o,a,s,l,u,h,c){function d(e,i,n){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:b,height:S}),I)p(i);else{i.invisible=!1;var o=l.getVisual("borderColor",!0),a=P.get("borderColor"),r=MO(k);r.fill=o;var s=SO(P);if(s.fill=a,n){var u=b-2*M;g(r,s,o,u,C,{x:M,y:0,width:u,height:C})}else r.text=s.text=null;i.setStyle(r),Na(i,s)}e.add(i)}function f(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var n=Math.max(b-2*M,0),o=Math.max(S-2*M,0);if(i.culling=!0,i.setShape({x:M,y:M,width:n,height:o}),I)p(i); +else{i.invisible=!1;var a=l.getVisual("color",!0),r=MO(k);r.fill=a;var s=SO(P);g(r,s,a,n,o),i.setStyle(r),Na(i,s)}e.add(i)}function p(t){!t.invisible&&s.push(t)}function g(e,i,o,a,r,s){var u=E.get("name"),h=E.getModel(s?yO:mO),c=E.getModel(s?xO:vO),d=h.getShallow("show");Ua(e,i,h,c,{defaultText:d?u:null,autoColor:o,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:s?"upperLabel":"label"}),m(e,s,_),m(i,s,_),s&&(e.textRect=n(s)),e.truncate=d&&h.get("ellipsis")?{outerWidth:a,outerHeight:r,minChar:2}:null}function m(e,i,n){var o=e.text;if(!i&&n.isLeafRoot&&null!=o){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+o:o}}function v(t,n,o,r){var s=null!=A&&i[t][A],l=a[t];return s?(i[t][A]=null,y(l,s,t)):I||(s=new n({z:Fp(o,r)}),s.__tmDepth=o,s.__tmStorageName=t,x(l,s,t)),e[t][T]=s}function y(t,e,i){var n=t[T]={};n.old="nodeGroup"===i?e.position.slice():r({},e.shape)}function x(t,e,i){var n=t[T]={},r=l.parentNode;if(r&&(!o||"drillDown"===o.direction)){var s=0,u=0,h=a.background[r.getRawIndex()];!o&&h&&h.old&&(s=h.old.width,u=h.old.height),n.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}n.fadein="nodeGroup"!==i}if(l){var _=l.getLayout(),w=t.getData();if(w.setItemGraphicEl(l.dataIndex,null),_&&_.isInView){var b=_.width,S=_.height,M=_.borderWidth,I=_.invisible,T=l.getRawIndex(),A=u&&u.getRawIndex(),D=l.viewChildren,C=_.upperHeight,L=D&&D.length,k=l.getModel("itemStyle"),P=l.getModel("emphasis.itemStyle"),O=v("nodeGroup",dO);if(O){if(h.add(O),O.attr("position",[_.x||0,_.y||0]),O.__tmNodeWidth=b,O.__tmNodeHeight=S,_.isAboveViewRoot)return O;var E=l.getModel(),N=v("background",fO,c,wO);if(N&&d(O,N,L&&_.upperLabelHeight),L)Ha(O)&&Wa(O,!1),N&&(Wa(N,!0),w.setItemGraphicEl(l.dataIndex,N));else{var z=v("content",fO,c,bO);z&&f(O,z),N&&Ha(N)&&Wa(N,!1),Wa(O,!0),w.setItemGraphicEl(l.dataIndex,O)}return O}}}}function Fp(t,e){var i=t*_O+e;return(i-1)/i}function Wp(t){var e=t.pieceList;t.hasSpecialVisual=!1,f(e,function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)})}function Hp(t){var e=t.categories,i=t.visual,n=t.categoryMap={};if(DO(e,function(t,e){n[t]=e}),!_(i)){var o=[];S(i)?DO(i,function(t,e){var i=n[e];o[null!=i?i:LO]=t}):o[LO]=i,i=Jp(t,o)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function Zp(t,e){var i=t.visual,n=[];S(i)?DO(i,function(t){n.push(t)}):null!=i&&n.push(i);var o={color:1,symbol:1};e||1!==n.length||o.hasOwnProperty(t.type)||(n[1]=n[0]),Jp(t,n)}function Up(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:Kp([0,1])}}function Xp(t){var e=this.option.visual;return e[Math.round(Sr(t,[0,1],[0,e.length-1],!0))]||{}}function Yp(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function jp(t){var e=this.option.visual;return e[this.option.loop&&t!==LO?t%e.length:t]}function qp(){return this.option.visual[0]}function Kp(t){return{linear:function(e){return Sr(e,t,this.option.visual,!0)},category:jp,piecewise:function(e,i){var n=$p.call(this,i);return null==n&&(n=Sr(e,t,this.option.visual,!0)),n},fixed:qp}}function $p(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=kO.findPieceIndex(t,i),o=i[n];if(o&&o.visual)return o.visual[this.type]}}function Jp(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=p(e,function(t){return ti(t)})),e}function Qp(t,e,i){return t?i>=e:i>e}function tg(t,e,i,n){var o=t.getModel(),a=t.getLayout();if(a&&!a.invisible&&a.isInView){var r,s=t.getModel(NO),l=eg(s,e,n),u=s.get("borderColor"),h=s.get("borderColorSaturation");null!=h&&(r=ig(l,t),u=ng(h,r)),t.setVisual("borderColor",u);var c=t.viewChildren;if(c&&c.length){var d=ag(t,o,a,s,l,c);f(c,function(t,e){if(t.depth>=i.length||t===i[t.depth]){var a=sg(o,l,t,e,d,n);tg(t,a,i,n)}})}else r=ig(l,t),t.setVisual("color",r)}}function eg(t,e,i){var n=r({},e),o=i.designatedVisualItemStyle;return f(["color","colorAlpha","colorSaturation"],function(i){o[i]=e[i];var a=t.get(i);o[i]=null,null!=a&&(n[i]=a)}),n}function ig(t){var e=og(t,"color");if(e){var i=og(t,"colorAlpha"),n=og(t,"colorSaturation");return n&&(e=si(e,null,null,n)),i&&(e=li(e,i)),e}}function ng(t,e){return null!=e?si(e,null,null,t):null}function og(t,e){var i=t[e];return null!=i&&"none"!==i?i:void 0}function ag(t,e,i,n,o,a){if(a&&a.length){var r=rg(e,"color")||null!=o.color&&"none"!==o.color&&(rg(e,"colorAlpha")||rg(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),u=i.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:r.name,dataExtent:u,visual:r.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new kO(c);return d.__drColorMappingBy=h,d}}}function rg(t,e){var i=t.get(e);return EO(i)&&i.length?{name:e,range:i}:null}function sg(t,e,i,n,o,a){var s=r({},e);if(o){var l=o.type,u="color"===l&&o.__drColorMappingBy,h="index"===u?n:"id"===u?a.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=o.mapValueToVisual(h)}return s}function lg(t,e,i,n){var o,a;if(!t.isRemoved()){var r=t.getLayout();o=r.width,a=r.height;var s=t.getModel(),l=s.get(FO),u=s.get(WO)/2,h=yg(s),c=Math.max(l,h),d=l-u,f=c-u,s=t.getModel();t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),o=RO(o-2*d,0),a=RO(a-d-f,0);var p=o*a,g=ug(t,s,p,e,i,n);if(g.length){var m={x:d,y:f,width:o,height:a},v=BO(o,a),y=1/0,x=[];x.area=0;for(var _=0,w=g.length;w>_;){var b=g[_];x.push(b),x.area+=b.getLayout().area;var S=fg(x,v,e.squareRatio);y>=S?(_++,y=S):(x.area-=x.pop().getLayout().area,pg(x,v,m,u,!1),v=BO(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&pg(x,v,m,u,!0),!i){var M=s.get("childrenVisibleMin");null!=M&&M>p&&(i=!0)}for(var _=0,w=g.length;w>_;_++)lg(g[_],e,i,n+1)}}}function ug(t,e,i,n,o,a){var r=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=a;if(o&&!l)return t.viewChildren=[];r=m(r,function(t){return!t.isRemoved()}),cg(r,s);var u=dg(e,r,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=hg(e,i,u.sum,s,r),0===u.sum)return t.viewChildren=[];for(var h=0,c=r.length;c>h;h++){var d=r[h].getValue()/u.sum*i;r[h].setLayout({area:d})}return l&&(r.length&&t.setLayout({isLeafRoot:!0},!0),r.length=0),t.viewChildren=r,t.setLayout({dataExtent:u.dataExtent},!0),r}function hg(t,e,i,n,o){if(!n)return i;for(var a=t.get("visibleMin"),r=o.length,s=r,l=r-1;l>=0;l--){var u=o["asc"===n?r-l-1:l].getValue();a>u/i*e&&(s=l,i-=u)}return"asc"===n?o.splice(0,r-s):o.splice(s,r-s),i}function cg(t,e){return e&&t.sort(function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}),t}function dg(t,e,i){for(var n=0,o=0,a=e.length;a>o;o++)n+=e[o].getValue();var r,s=t.get("visualDimension");if(e&&e.length)if("value"===s&&i)r=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&r.reverse();else{var r=[1/0,-1/0];GO(e,function(t){var e=t.getValue(s);er[1]&&(r[1]=e)})}else r=[0/0,0/0];return{sum:n,dataExtent:r}}function fg(t,e,i){for(var n,o=0,a=1/0,r=0,s=t.length;s>r;r++)n=t[r].getLayout().area,n&&(a>n&&(a=n),n>o&&(o=n));var l=t.area*t.area,u=e*e*i;return l?RO(u*o/l,l/(u*a)):1/0}function pg(t,e,i,n,o){var a=e===i.width?0:1,r=1-a,s=["x","y"],l=["width","height"],u=i[s[a]],h=e?t.area/e:0;(o||h>i[l[r]])&&(h=i[l[r]]);for(var c=0,d=t.length;d>c;c++){var f=t[c],p={},g=h?f.getLayout().area/h:0,m=p[l[r]]=RO(h-2*n,0),v=i[s[a]]+i[l[a]]-u,y=c===d-1||g>v?v:g,x=p[l[a]]=RO(y-2*n,0);p[s[r]]=i[s[r]]+BO(n,m/2),p[s[a]]=u+BO(n,x/2),u+=y,f.setLayout(p,!0)}i[s[r]]+=h,i[l[r]]-=h}function gg(t,e,i,n,o){var a=(e||{}).node,r=[n,o];if(!a||a===i)return r;for(var s,l=n*o,u=l*t.option.zoomToNodeRatio;s=a.parentNode;){for(var h=0,c=s.children,d=0,f=c.length;f>d;d++)h+=c[d].getValue();var p=a.getValue();if(0===p)return r;u*=h/p;var g=s.getModel(),m=g.get(FO),v=Math.max(m,yg(g,m));u+=4*m*m+(3*m+v)*Math.pow(u,.5),u>TA&&(u=TA),a=s}l>u&&(u=l);var y=Math.pow(u/l,.5);return[n*y,o*y]}function mg(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var o=i.node,a=o.getLayout();if(!a)return n;for(var r=[a.width/2,a.height/2],s=o;s;){var l=s.getLayout();r[0]+=l.x,r[1]+=l.y,s=s.parentNode}return{x:t.width/2-r[0],y:t.height/2-r[1]}}function vg(t,e,i,n,o){var a=t.getLayout(),r=i[o],s=r&&r===t;if(!(r&&!s||o===i.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new Ti(e.x-a.x,e.y-a.y,e.width,e.height);GO(t.viewChildren||[],function(t){vg(t,l,i,n,o+1)})}}function yg(t){return t.get(HO)?t.get(ZO):0}function xg(t){var e=0;f(t.children,function(t){xg(t);var i=t.value;_(i)&&(i=i[0]),e+=i});var i=t.value;_(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),0>i&&(i=0),_(t.value)?t.value[0]=i:t.value=i}function _g(t,e,i){function n(){r.ignore=r.hoverIgnore}function o(){r.ignore=r.normalIgnore}xM.call(this);var a=new BT({z2:YO});a.seriesIndex=e.seriesIndex;var r=new ET({z2:jO,silent:t.getModel("label").get("silent")});this.add(a),this.add(r),this.updateData(!0,t,"normal",e,i),this.on("emphasis",n).on("normal",o).on("mouseover",n).on("mouseout",o)}function wg(t,e,i){var n=t.getVisual("color"),o=t.getVisual("visualMeta");o&&0!==o.length||(n=null);var a=t.getModel("itemStyle").get("color");if(a)return a;if(n)return n;if(0===t.depth)return i.option.color[0];var r=i.option.color.length;return a=i.option.color[bg(t)%r]}function bg(t){for(var e=t;e.depth>1;)e=e.parentNode;var i=t.getAncestors()[0];return u(i.children,e)}function Sg(t,e,i){return i===XO.NONE?!1:i===XO.SELF?t===e:i===XO.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e)}function Mg(t,e,i){var n=e.getData();n.setItemVisual(t.dataIndex,"color",i)}function Ig(t,e){var i=t.children||[];t.children=Tg(i,e),i.length&&f(t.children,function(t){Ig(t,e)})}function Tg(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}function Ag(t){for(var e,i=0;i1?(f.width=l,f.height=l/c):(f.height=l,f.width=l*c),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else a=t.getBoxLayoutParams(),a.aspect=c,f=ts(a,{width:u,height:h});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Fg(t,e){f(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function Wg(t,e){var i={};return f(t,function(t){t.each(t.mapDimension("value"),function(e,n){var o="ec-"+t.getName(n);i[o]=i[o]||[],isNaN(e)||i[o].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,o){for(var a="ec-"+t[0].getName(o),r=0,s=1/0,l=-1/0,u=i[a].length,h=0;u>h;h++)s=Math.min(s,i[a][h]),l=Math.max(l,i[a][h]),r+=i[a][h];var c;return c="min"===e?s:"max"===e?l:"average"===e?r/u:r,0===u?0/0:c})}function Hg(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(eS&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=p(e,function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),a([i,t[0],t[1]])}))}function Zg(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function Ug(t){return"_"+t+"Type"}function Xg(t,e,i){var n=e.getItemVisual(i,t);if(n&&"none"!==n){var o=e.getItemVisual(i,"color"),a=e.getItemVisual(i,t+"Size"),r=e.getItemVisual(i,t+"Rotate");_(a)||(a=[a,a]);var s=oc(n,-a[0]/2,-a[1]/2,a[0],a[1],o);return s.__specifiedRotation=null==r||isNaN(r)?void 0:+r*Math.PI/180||0,s.name=t,s}}function Yg(t){var e=new PE({name:"line",subPixelOptimize:!0});return jg(e.shape,t),e}function jg(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=0/0,t.cpy1=0/0)}function qg(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var o=1,a=this.parent;a;)a.scale&&(o/=a.scale[0]),a=a.parent;var r=t.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),u=r.pointAt(s),h=Y([],u,l);if(te(h,h),e){e.attr("position",l);var c=e.__specifiedRotation;if(null==c){var d=r.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0]))}else e.attr("rotation",c);e.attr("scale",[o*s,o*s])}if(i){i.attr("position",u);var c=i.__specifiedRotation;if(null==c){var d=r.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0]))}else i.attr("rotation",c);i.attr("scale",[o*s,o*s])}if(!n.ignore){n.attr("position",u);var f,p,g,m,v=n.__labelDistance,y=v[0]*o,x=v[1]*o,_=s/2,d=r.tangentAt(_),w=[d[1],-d[0]],b=r.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var S=d[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var M=-Math.atan2(d[1],d[0]);u[0].8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":f=[-h[0]*y+l[0],-h[1]*x+l[1]],p=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[y*S+l[0],l[1]+I],p=d[0]<0?"right":"left",m=[-y*S,-I];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[b[0],b[1]+I],p="center",m=[0,-I];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-y*S+u[0],u[1]+I],p=d[0]>=0?"right":"left",m=[y*S,-I]}n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||p},position:f,scale:[o,o],origin:m})}}}}function Kg(t,e,i){xM.call(this),this._createLine(t,e,i)}function $g(t){this._ctor=t||Kg,this.group=new xM}function Jg(t,e,i,n){var o=e.getItemLayout(i);if(nm(o)){var a=new t._ctor(e,i,n);e.setItemGraphicEl(i,a),t.group.add(a)}}function Qg(t,e,i,n,o,a){var r=e.getItemGraphicEl(n);return nm(i.getItemLayout(o))?(r?r.updateData(i,o,a):r=new t._ctor(i,o,a),i.setItemGraphicEl(o,r),void t.group.add(r)):void t.group.remove(r)}function tm(t){return t.animators&&t.animators.length>0}function em(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function im(t){return isNaN(t[0])||isNaN(t[1])}function nm(t){return!im(t[0])&&!im(t[1])}function om(t,e,i){xM.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function am(t,e,i){xM.call(this),this._createPolyline(t,e,i)}function rm(t,e,i){om.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function sm(){this.group=new xM}function lm(t){return t instanceof Array||(t=[t,t]),t}function um(t){return"_EC_"+t}function hm(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function cm(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}function dm(t){qE(t)&&(t.__curvenessList=[],t.__edgeMap={},KE(t))}function fm(t,e,i,n){if(qE(i)){var o=$E(t,e,i),a=i.__edgeMap,r=a[JE(o)];a[o]&&!r?a[o].isForward=!0:r&&a[o]&&(r.isForward=!0,a[o].isForward=!1),a[o]=a[o]||[],a[o].push(n)}}function pm(t,e,i,n){var o=qE(e),a=_(o);if(!o)return null;var r=QE(t,e);if(!r)return null;for(var s=-1,l=0;l=h;h+=.1){nN[0]=rN(o[0],a[0],r[0],h),nN[1]=rN(o[1],a[1],r[1],h);var c=lN(sN(nN,e)-l);s>c&&(s=c,n=h)}for(var d=0;32>d;d++){var f=n+u;oN[0]=rN(o[0],a[0],r[0],n),oN[1]=rN(o[1],a[1],r[1],n),aN[0]=rN(o[0],a[0],r[0],f),aN[1]=rN(o[1],a[1],r[1],f);var c=sN(oN,e)-l;if(lN(c)<.01)break;var p=sN(aN,e)-l;u/=2,0>c?p>=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function ym(t,e){var i=t.getVisual("opacity");return null!=i?i:t.getModel().get(e)}function xm(t,e,i){var n=t.getGraphicEl(),o=ym(t,e);null!=i&&(null==o&&(o=1),o*=i),n.downplay&&n.downplay(),n.traverse(function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;(null==e||null!=i)&&(e=o),t.setStyle("opacity",e)}})}function _m(t,e){var i=ym(t,e),n=t.getGraphicEl();n.traverse(function(t){!t.isGroup&&t.setStyle("opacity",i)}),n.highlight&&n.highlight()}function wm(t){return t instanceof Array||(t=[t,t]),t}function bm(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),Sm(i,t)}}function Sm(t,e){t.eachEdge(function(t,i){var n=L(t.getModel().get("lineStyle.curveness"),-pm(t,e,i,!0),0),o=H(t.node1.getLayout()),a=H(t.node2.getLayout()),r=[o,a];+n&&r.push([(o[0]+a[0])/2-(o[1]-a[1])*n,(o[1]+a[1])/2-(a[0]-o[0])*n]),t.setLayout(r)})}function Mm(t,e){var i=t.coordinateSystem;if(!i||"view"===i.type){var n=i.getBoundingRect(),o=t.getData(),a=o.graph,r=n.width/2+n.x,s=n.height/2+n.y,l=Math.min(n.width,n.height)/2,u=o.count();o.setLayout({cx:r,cy:s}),u&&(wN[e](t,i,a,o,l,r,s,u),a.eachEdge(function(e,i){var n,o=L(e.getModel().get("lineStyle.curveness"),pm(e,t,i),0),a=H(e.node1.getLayout()),l=H(e.node2.getLayout()),u=(a[0]+l[0])/2,h=(a[1]+l[1])/2;+o&&(o*=3,n=[r*o+u*(1-o),s*o+h*(1-o)]),e.setLayout([a,l,n])}))}}function Im(t,e,i){for(var n=i.rect,o=n.width,a=n.height,r=[n.x+o/2,n.y+a/2],s=null==i.gravity?.1:i.gravity,l=0;la;a++){var p=t[a];p.fixed||(Y(n,r,p.p),SN(p.p,p.p,n,s*c))}for(var a=0;o>a;a++)for(var u=t[a],g=a+1;o>g;g++){var h=t[g];Y(n,h.p,u.p);var d=j(n);0===d&&(Z(n,Math.random()-.5,Math.random()-.5),d=1);var m=(u.rep+h.rep)/d/d;!u.fixed&&SN(u.pp,u.pp,n,m),!h.fixed&&SN(h.pp,h.pp,n,-m)}for(var v=[],a=0;o>a;a++){var p=t[a];p.fixed||(Y(v,p.p,p.pp),SN(p.p,p.p,v,c),W(p.pp,p.p))}c=.992*c,i&&i(t,e,.01>c)}}}function Tm(t,e,i){var n=t.getBoxLayoutParams();return n.aspect=i,ts(n,{width:e.getWidth(),height:e.getHeight()})}function Am(t,e,i,n,o){var a=t.ends,r=new CN({shape:{points:o?Cm(a,n,t):a}});return Dm(t,r,e,i,o),r}function Dm(t,e,i,n,o){var a=i.hostModel,r=vA[o?"initProps":"updateProps"];r(e,{shape:{points:t.ends}},a,n);var s=i.getItemModel(n),l=s.getModel(AN),u=i.getItemVisual(n,"color"),h=l.getItemStyle(["borderColor"]);h.stroke=u,h.strokeNoScale=!0,e.useStyle(h),e.z2=100;var c=s.getModel(DN).getItemStyle();Fa(e,c)}function Cm(t,e,i){return p(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function Lm(t){var e=[],i=[];return t.eachSeriesByType("boxplot",function(t){var n=t.getBaseAxis(),o=u(i,n);0>o&&(o=i.length,i[o]=n,e[o]={axis:n,seriesModels:[]}),e[o].seriesModels.push(t)}),e}function km(t){var e,i,n=t.axis,o=t.seriesModels,a=o.length,r=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===n.type)i=n.getBandWidth();else{var u=0;PN(o,function(t){u=Math.max(u,t.getData().count())}),e=n.getExtent(),Math.abs(e[1]-e[0])/u}PN(o,function(t){var e=t.get("boxWidth");_(e)||(e=[e,e]),l.push([Mr(e[0],i)||0,Mr(e[1],i)||0])});var h=.8*i-2,c=h/a*.3,d=(h-c*(a-1))/a,f=d/2-h/2;PN(o,function(t,e){s.push(f),f+=c+d,r.push(Math.min(Math.max(d,l[e][0]),l[e][1]))})}function Pm(t,e,i){function n(t,i,n){var o=s.get(i,n),a=[];a[u]=t,a[h]=o;var l;return isNaN(t)||isNaN(o)?l=[0/0,0/0]:(l=r.dataToPoint(a),l[u]+=e),l}function o(t,e,i){var n=e.slice(),o=e.slice();n[u]+=l,o[u]-=l,i?t.push(n,o):t.push(o,n)}function a(t,e){var i=e.slice(),n=e.slice();i[u]-=l,n[u]+=l,t.push(i,n)}var r=t.coordinateSystem,s=t.getData(),l=i/2,u="horizontal"===t.get("layout")?0:1,h=1-u,c=["x","y"],d=s.mapDimension(c[u]),f=s.mapDimension(c[h],!0);if(!(null==d||f.length<5))for(var p=0;p0?-1:0>i?1:e?-1:1}}function zm(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function Rm(t,e,i){this._axesMap=B(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function Bm(t,e){return BN(VN(t,e[0]),e[1])}function Vm(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function Gm(t,e){var i,n,o=e.layoutLength,a=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return ttz}function av(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function rv(t,e,i,n){var o=new xM;return o.add(new XT({name:"main",style:hv(i),silent:!0,draggable:!0,cursor:"move",drift:YN(t,e,o,"nswe"),ondragend:YN(nv,e,{isEnd:!0})})),jN(n,function(i){o.add(new XT({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:YN(t,e,o,i),ondragend:YN(nv,e,{isEnd:!0})}))}),o}function sv(t,e,i,n){var o=n.brushStyle.lineWidth||0,a=$N(o,ez),r=i[0][0],s=i[1][0],l=r-o/2,u=s-o/2,h=i[0][1],c=i[1][1],d=h-a+o/2,f=c-a+o/2,p=h-r,g=c-s,m=p+o,v=g+o;uv(t,e,"main",r,s,p,g),n.transformable&&(uv(t,e,"w",l,u,a,v),uv(t,e,"e",d,u,a,v),uv(t,e,"n",l,u,m,a),uv(t,e,"s",l,f,m,a),uv(t,e,"nw",l,u,a,a),uv(t,e,"ne",d,u,a,a),uv(t,e,"sw",l,f,a,a),uv(t,e,"se",d,f,a,a))}function lv(t,e){var i=e.__brushOption,n=i.transformable,o=e.childAt(0);o.useStyle(hv(i)),o.attr({silent:!n,cursor:n?"move":"default"}),jN(["w","e","n","s","se","sw","ne","nw"],function(i){var o=e.childOfName(i),a=fv(t,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?oz[a]+"-resize":null})})}function uv(t,e,i,n,o,a,r){var s=e.childOfName(i);s&&s.setShape(yv(vv(t,e,[[n,o],[n+a,o+r]])))}function hv(t){return s({strokeNoScale:!0},t.brushStyle)}function cv(t,e,i,n){var o=[KN(t,i),KN(e,n)],a=[$N(t,i),$N(e,n)];return[[o[0],a[0]],[o[1],a[1]]]}function dv(t){return ar(t.group)}function fv(t,e){if(e.length>1){e=e.split("");var i=[fv(t,e[0]),fv(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},i=sr(n[e],dv(t));return o[i]}function pv(t,e,i,n,o,a,r){var s=n.__brushOption,l=t(s.range),u=mv(i,a,r);jN(o.split(""),function(t){var e=nz[t];l[e[0]][e[1]]+=u[e[0]]}),s.range=e(cv(l[0][0],l[1][0],l[0][1],l[1][1])),Jm(i,n),nv(i,{isEnd:!1})}function gv(t,e,i,n){var o=e.__brushOption.range,a=mv(t,i,n);jN(o,function(t){t[0]+=a[0],t[1]+=a[1]}),Jm(t,e),nv(t,{isEnd:!1})}function mv(t,e,i){var n=t.group,o=n.transformCoordToLocal(e,i),a=n.transformCoordToLocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function vv(t,e,i){var o=ev(t,e);return o&&o!==!0?o.clipPath(i,t._transform):n(i)}function yv(t){var e=KN(t[0][0],t[1][0]),i=KN(t[0][1],t[1][1]),n=$N(t[0][0],t[1][0]),o=$N(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:o-i}}function xv(t,e,i){if(t._brushType&&!Iv(t,e)){var n=t._zr,o=t._covers,a=tv(t,e,i);if(!t._dragging)for(var r=0;re||e>n.getWidth()||0>i||i>n.getHeight()}function Tv(t){return{createCover:function(e,i){return rv(YN(pv,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=av(e),n=KN(i[0][t],i[1][t]),o=$N(i[0][t],i[1][t]);return[n,o]},updateCoverShape:function(e,i,n,o){var a,r=ev(e,i);if(r!==!0&&r.getLinearBrushOtherExtent)a=r.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,a];t&&l.reverse(),sv(e,i,l,o)},updateCommon:lv,contain:wv}}function Av(t){return t=Lv(t),function(e){return ur(e,t)}}function Dv(t,e){return t=Lv(t),function(i){var n=null!=e?e:i,o=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(o||0)]}}function Cv(t,e,i){return t=Lv(t),function(n,o){return t.contain(o[0],o[1])&&!yp(n,e,i)}}function Lv(t){return Ti.create(t)}function kv(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function Pv(t){var e=t.axis;return p(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]} +})}function Ov(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}function Ev(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}function Nv(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=B();f(i.dimensions,function(t){var e=zv(t);n.set(t,e)})}}}function zv(t){return+t.replace("dim","")}function Rv(t,e,i){var n=t.model,o=t.getRect(),a=new XT({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),r="horizontal"===n.get("layout")?"width":"height";return a.setShape(r,0),or(a,{shape:{width:o.width,height:o.height}},e,i),a}function Bv(t,e,i,n){for(var o=[],a=0;ar;r++)o[r]=r;return"function"==typeof e?o.sort(e):"none"!==e&&o.sort(function(t,e){return a?n[t]-n[e]:n[e]-n[t]}),o}function jv(t){t.each(function(e){var i,n,o,a,r=t.getItemModel(e),s=r.getModel("label"),l=s.get("position"),u=r.get("orient"),h=r.getModel("labelLine"),c=t.getItemLayout(e),d=c.points,f="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(f)"insideLeft"===l?(n=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===l?(n=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(n=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),a=[[n,o],[n,o]];else{var p,g,m,v,y=h.get("length");eS&&("vertical"===u&&["top","bottom"].indexOf(l)>-1&&(l="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),"horizontal"===u&&["left","right"].indexOf(l)>-1&&(l="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),"left"===l?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=p-y,n=m-5,i="right"):"right"===l?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=p+y,n=m+5,i="left"):"top"===l?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-y,o=v-5,i="center"):"bottom"===l?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+y,o=v+5,i="center"):"rightTop"===l?(p="horizontal"===u?d[3][0]:d[1][0],g="horizontal"===u?d[3][1]:d[1][1],"horizontal"===u?(v=g-y,o=v-5,i="center"):(m=p+y,n=m+5,i="top")):"rightBottom"===l?(p=d[2][0],g=d[2][1],"horizontal"===u?(v=g+y,o=v+5,i="center"):(m=p+y,n=m+5,i="bottom")):"leftTop"===l?(p=d[0][0],g="horizontal"===u?d[0][1]:d[1][1],"horizontal"===u?(v=g-y,o=v-5,i="center"):(m=p-y,n=m-5,i="right")):"leftBottom"===l?(p="horizontal"===u?d[1][0]:d[3][0],g="horizontal"===u?d[1][1]:d[2][1],"horizontal"===u?(v=g+y,o=v+5,i="center"):(m=p-y,n=m-5,i="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===u?(v=g+y,o=v+5,i="center"):(m=p+y,n=m+5,i="left")),"horizontal"===u?(m=p,n=m):(v=g,o=v),a=[[p,g],[m,v]]}c.label={linePoints:a,x:n,y:o,verticalAlign:"middle",textAlign:i,inside:f}})}function qv(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function Kv(t,e,i){var n=t.getGraphicEl(),o=qv(t,e);null!=i&&(null==o&&(o=1),o*=i),n.downplay&&n.downplay(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",o)})}function $v(t,e){var i=qv(t,e),n=t.getGraphicEl();n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)}),n.highlight&&n.highlight()}function Jv(t,e,i){var n=new XT({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return or(n,{shape:{width:t.width+20}},e,i),n}function Qv(t,e){return ts(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ty(t,e,i,n,o,a,r,s,l){iy(t,e,i,o,a,s,l),sy(t,e,a,o,n,r,s),_y(t,s)}function ey(t){f(t,function(t){var e=yy(t.outEdges,vy),i=yy(t.inEdges,vy),n=t.getValue()||0,o=Math.max(e,i,n);t.setLayout({value:o},!0)})}function iy(t,e,i,n,o,a,r){for(var s=[],l=[],u=[],h=[],c=0,d=0,f=0;f=0;y&&v.depth>p&&(p=v.depth),m.setLayout({depth:y?v.depth:c},!0),"vertical"===a?m.setLayout({dy:i},!0):m.setLayout({dx:i},!0);for(var x=0;xc-1?p:c-1;r&&"left"!==r&&oy(t,r,a,M);var d="vertical"===a?(o-i)/M:(n-i)/M;ry(t,d,a)}function ny(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function oy(t,e,i,n){if("right"===e){for(var o=[],a=t,r=0;a.length;){for(var s=0;s0;a--)l*=.99,cy(s,l,r),hy(s,o,i,n,r),xy(s,l,r),hy(s,o,i,n,r)}function ly(t,e){var i=[],n="vertical"===e?"y":"x",o=vo(t,function(t){return t.getLayout()[n]});return o.keys.sort(function(t,e){return t-e}),f(o.keys,function(t){i.push(o.buckets.get(t))}),i}function uy(t,e,i,n,o,a){var r=1/0;f(t,function(t){var e=t.length,s=0;f(t,function(t){s+=t.getLayout().value});var l="vertical"===a?(n-(e-1)*o)/s:(i-(e-1)*o)/s;r>l&&(r=l)}),f(t,function(t){f(t,function(t,e){var i=t.getLayout().value*r;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))})}),f(e,function(t){var e=+t.getValue()*r;t.setLayout({dy:e},!0)})}function hy(t,e,i,n,o){var a="vertical"===o?"x":"y";f(t,function(t){t.sort(function(t,e){return t.getLayout()[a]-e.getLayout()[a]});for(var r,s,l,u=0,h=t.length,c="vertical"===o?"dx":"dy",d=0;h>d;d++)s=t[d],l=u-s.getLayout()[a],l>0&&(r=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[a]+s.getLayout()[c]+e;var f="vertical"===o?n:i;if(l=u-e-f,l>0)for(r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0),u=r,d=h-2;d>=0;--d)s=t[d],l=s.getLayout()[a]+s.getLayout()[c]+e-u,l>0&&(r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[a]})}function cy(t,e,i){f(t.slice().reverse(),function(t){f(t,function(t){if(t.outEdges.length){var n=yy(t.outEdges,dy,i)/yy(t.outEdges,vy,i);if(isNaN(n)){var o=t.outEdges.length;n=o?yy(t.outEdges,fy,i)/o:0}if("vertical"===i){var a=t.getLayout().x+(n-my(t,i))*e;t.setLayout({x:a},!0)}else{var r=t.getLayout().y+(n-my(t,i))*e;t.setLayout({y:r},!0)}}})})}function dy(t,e){return my(t.node2,e)*t.getValue()}function fy(t,e){return my(t.node2,e)}function py(t,e){return my(t.node1,e)*t.getValue()}function gy(t,e){return my(t.node1,e)}function my(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function vy(t){return t.getValue()}function yy(t,e,i){for(var n=0,o=t.length,a=-1;++a=f&&((r>f||d>=0&&0>s)&&(r=f,s=d,o=l,a.length=0),Rz(u,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:o}}function Ay(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Dy(t,e,i,n){var o=i.payloadBatch,a=e.axis,r=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,u=bd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:o.slice()})}}function Cy(t,e,i){var n=i.axesInfo=[];Rz(e,function(e,i){var o=e.axisPointerModel.option,a=t[i];a?(!e.useHandle&&(o.status="show"),o.value=a.value,o.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})})}function Ly(t,e,i,n){if(Ey(e)||!t.list.length)return void n({type:"hideTip"});var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}function ky(t,e,i){var n=i.getZr(),o="axisPointerLastHighlights",a=Vz(n)[o]||{},r=Vz(n)[o]={};Rz(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&Rz(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t})});var s=[],l=[];f(a,function(t,e){!r[e]&&l.push(t)}),f(r,function(t,e){!a[e]&&s.push(t)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function Py(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Oy(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Ey(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Ny(t,e,i){if(!aS.node){var n=e.getZr();Fz(n).records||(Fz(n).records={}),zy(n,e);var o=Fz(n).records[t]||(Fz(n).records[t]={});o.handler=i}}function zy(t,e){function i(i,n){t.on(i,function(i){var o=Gy(e);Wz(Fz(t).records,function(t){t&&n(t,i,o.dispatchAction)}),Ry(o.pendings,e)})}Fz(t).initialized||(Fz(t).initialized=!0,i("click",x(Vy,"click")),i("mousemove",x(Vy,"mousemove")),i("globalout",By))}function Ry(t,e){var i,n=t.showTip.length,o=t.hideTip.length;n?i=t.showTip[n-1]:o&&(i=t.hideTip[o-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function By(t,e,i){t.handler("leave",null,i)}function Vy(t,e,i,n){e.handler(t,i,n)}function Gy(t){var e={showTip:[],hideTip:[]},i=function(n){var o=e[n.type];o?o.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function Fy(t,e){if(!aS.node){var i=e.getZr(),n=(Fz(i).records||{})[t];n&&(Fz(i).records[t]=null)}}function Wy(){}function Hy(t,e,i,n){Zy(Zz(i).lastProp,n)||(Zz(i).lastProp=n,e?nr(i,n,t):(i.stopAnimation(),i.attr(n)))}function Zy(t,e){if(S(t)&&S(e)){var i=!0;return f(e,function(e,n){i=i&&Zy(t[n],e)}),!!i}return t===e}function Uy(t,e){t[e.get("label.show")?"show":"hide"]()}function Xy(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Yy(t,e,i){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=o&&(t.zlevel=o),t.silent=i)})}function jy(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function qy(t,e,i,n,o){var a=i.get("value"),r=$y(a,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),s=i.getModel("label"),l=CA(s.get("padding")||0),u=s.getFont(),h=Ui(r,u),c=o.position,d=h.width+l[1]+l[3],f=h.height+l[0]+l[2],p=o.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var g=o.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),Ky(c,d,f,n);var m=s.get("backgroundColor");m&&"auto"!==m||(m=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:d,height:f,r:s.get("borderRadius")},position:c.slice(),style:{text:r,textFont:u,textFill:s.getTextColor(),textPosition:"inside",textPadding:l,fill:m,stroke:s.get("borderColor")||"transparent",lineWidth:s.get("borderWidth")||0,shadowBlur:s.get("shadowBlur"),shadowColor:s.get("shadowColor"),shadowOffsetX:s.get("shadowOffsetX"),shadowOffsetY:s.get("shadowOffsetY")},z2:10}}function Ky(t,e,i,n){var o=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+i,a)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function $y(t,e,i,n,o){t=e.scale.parse(t);var a=e.scale.getLabel(t,{precision:o.precision}),r=o.formatter;if(r){var s={value:Jh(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};f(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,o=e&&e.getDataParams(n);o&&s.seriesData.push(o)}),b(r)?a=r.replace("{value}",a):w(r)&&(a=r(s))}return a}function Jy(t,e,i){var n=Oe();return Be(n,n,i.rotation),Re(n,n,i.position),rr([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Qy(t,e,i,n,o,a){var r=Nk.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=o.get("label.margin"),qy(e,n,o,a,{position:Jy(n.axis,t,i),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function tx(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function ex(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function ix(t,e,i,n,o,a){return{cx:t,cy:e,r0:i,r:n,startAngle:o,endAngle:a,clockwise:!0}}function nx(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function ox(t){return"x"===t.dim?0:1}function ax(t){return t.isHorizontal()?0:1}function rx(t,e){var i=t.getRect();return[i[qz[e]],i[qz[e]]+i[Kz[e]]]}function sx(t,e,i){var n=new XT({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return or(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function lx(t,e,i){if(t.count())for(var n,o=e.coordinateSystem,a=e.getLayerSeries(),r=t.mapDimension("single"),s=t.mapDimension("value"),l=p(a,function(e){return p(e.indices,function(e){var i=o.dataToPoint(t.get(r,e));return i[1]=t.get(s,e),i})}),u=ux(l),h=u.y0,c=i/u.max,d=a.length,f=a[0].indices.length,g=0;f>g;++g){n=h[g]*c,t.setItemLayout(a[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:n,y:l[0][g][1]*c});for(var m=1;d>m;++m)n+=l[m-1][g][1]*c,t.setItemLayout(a[m].indices[g],{layerIndex:m,x:l[m][g][0],y0:n,y:l[m][g][1]*c})}}function ux(t){for(var e,i=t.length,n=t[0].length,o=[],a=[],r=0,s={},l=0;n>l;++l){for(var u=0,e=0;i>u;++u)e+=t[u][l][1];e>r&&(r=e),o.push(e)}for(var h=0;n>h;++h)a[h]=(r-o[h])/2;r=0;for(var c=0;n>c;++c){var d=o[c]+a[c];d>r&&(r=d)}return s.y0=a,s.max=r,s}function hx(t,e,i,n){var o=t.getItemLayout(e),a=i.get("symbolRepeat"),r=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=i.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=i.get("symbolPatternSize")||2,c=i.isAnimationEnabled(),d={dataIndex:e,layout:o,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:r,symbolRepeat:a,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:c?i:null,hoverAnimation:c&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};cx(i,a,o,n,d),fx(t,e,o,a,r,d.boundingLength,d.pxSign,h,n,d),px(i,d.symbolScale,u,n,d);var f=d.symbolSize,p=i.get("symbolOffset");return _(p)&&(p=[Mr(p[0],f[0]),Mr(p[1],f[1])]),gx(i,f,o,a,r,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function cx(t,e,i,n,o){var a,r=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(i[r.wh]<=0);if(_(s)){var c=[dx(l,s[0])-u,dx(l,s[1])-u];c[1]0?1:0>a?-1:0}function dx(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function fx(t,e,i,n,o,a,r,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),f=t.getItemVisual(e,"symbolSize");_(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[c.index]=Mr(f[c.index],d),f[h.index]=Mr(f[h.index],n?d:Math.abs(a)),u.symbolSize=f;var p=u.symbolScale=[f[0]/s,f[1]/s];p[h.index]*=(l.isHorizontal?-1:1)*r}function px(t,e,i,n,o){var a=t.get(oR)||0;a&&(rR.attr({scale:e.slice(),rotation:i}),rR.updateTransform(),a/=rR.getLineScale(),a*=e[n.valueDim.index]),o.valueLineWidth=a}function gx(t,e,i,n,o,a,s,l,u,h,c,d){var f=c.categoryDim,p=c.valueDim,g=d.pxSign,m=Math.max(e[p.index]+l,0),v=m;if(n){var y=Math.abs(u),x=D(t.get("symbolMargin"),"15%")+"",_=!1;x.lastIndexOf("!")===x.length-1&&(_=!0,x=x.slice(0,x.length-1)),x=Mr(x,e[p.index]);var w=Math.max(m+2*x,0),b=_?0:2*x,S=Vr(n),M=S?n:Ox((y+b)/w),I=y-M*m;x=I/2/(_?M:M-1),w=m+2*x,b=_?0:2*x,S||"fixed"===n||(M=h?Ox((Math.abs(h)+b)/w):0),v=M*w-b,d.repeatTimes=M,d.symbolMargin=x}var T=g*(v/2),A=d.pathPosition=[];A[f.index]=i[f.wh]/2,A[p.index]="start"===s?T:"end"===s?u-T:u/2,a&&(A[0]+=a[0],A[1]+=a[1]);var C=d.bundlePosition=[];C[f.index]=i[f.xy],C[p.index]=i[p.xy];var L=d.barRectShape=r({},i);L[p.wh]=g*Math.max(Math.abs(i[p.wh]),Math.abs(A[p.index]+T)),L[f.wh]=i[f.wh];var k=d.clipShape={};k[f.xy]=-i[f.xy],k[f.wh]=c.ecSize[f.wh],k[p.xy]=0,k[p.wh]=i[p.wh]}function mx(t){var e=t.symbolPatternSize,i=oc(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function vx(t,e,i,n){function o(t){var e=h.slice(),n=i.pxSign,o=t;return("start"===i.symbolRepeatDirection?n>0:0>n)&&(o=d-1-t),e[c.index]=p*(o-d/2+.5)+h[c.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function a(){Lx(t,function(t){t.trigger("emphasis")})}function r(){Lx(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,l=i.symbolSize,u=i.valueLineWidth,h=i.pathPosition,c=e.valueDim,d=i.repeatTimes||0,f=0,p=l[e.valueDim.index]+u+2*i.symbolMargin;for(Lx(t,function(t){t.__pictorialAnimationIndex=f,t.__pictorialRepeatTimes=d,d>f?kx(t,null,o(f),i,n):kx(t,null,{scale:[0,0]},i,n,function(){s.remove(t)}),Ix(t,i),f++});d>f;f++){var g=mx(i);g.__pictorialAnimationIndex=f,g.__pictorialRepeatTimes=d,s.add(g);var m=o(f);kx(g,{position:m.position,scale:[0,0]},{scale:m.scale,rotation:m.rotation},i,n),g.on("mouseover",a).on("mouseout",r),Ix(g,i)}}function yx(t,e,i,n){function o(){this.trigger("emphasis")}function a(){this.trigger("normal")}var r=t.__pictorialBundle,s=t.__pictorialMainPath;s?kx(s,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(s=t.__pictorialMainPath=mx(i),r.add(s),kx(s,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),s.on("mouseover",o).on("mouseout",a)),Ix(s,i)}function xx(t,e,i){var n=r({},e.barRectShape),o=t.__pictorialBarRect;o?kx(o,null,{shape:n},e,i):(o=t.__pictorialBarRect=new XT({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function _x(t,e,i,n){if(i.symbolClip){var o=t.__pictorialClipPath,a=r({},i.clipShape),s=e.valueDim,l=i.animationModel,u=i.dataIndex;if(o)nr(o,{shape:a},l,u);else{a[s.wh]=0,o=new XT({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[s.wh]=i.clipShape[s.wh],vA[n?"updateProps":"initProps"](o,{shape:h},l,u)}}}function bx(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=Sx,i.isAnimationEnabled=Mx,i}function Sx(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Mx(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ix(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:i.slice()},400,"elasticOut")})}function Tx(t,e,i,n){var o=new xM,a=new xM;return o.add(a),o.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?vx(o,e,i):yx(o,e,i),xx(o,i,n),_x(o,e,i,n),o.__pictorialShapeStr=Cx(t,i),o.__pictorialSymbolMeta=i,o}function Ax(t,e,i){var n=i.animationModel,o=i.dataIndex,a=t.__pictorialBundle;nr(a,{position:i.bundlePosition.slice()},n,o),i.symbolRepeat?vx(t,e,i,!0):yx(t,e,i,!0),xx(t,i,!0),_x(t,e,i,!0)}function Dx(t,e,i,n){var o=n.__pictorialBarRect;o&&(o.style.text=null);var a=[];Lx(n,function(t){a.push(t)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),f(a,function(t){nr(t,{scale:[0,0]},i,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function Cx(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Lx(t,e,i){f(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(i,n)})}function kx(t,e,i,n,o,a){e&&t.attr(e),n.symbolClip&&!o?i&&t.attr(i):i&&vA[o?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,a)}function Px(t,e,i){var n=i.color,o=i.dataIndex,a=i.itemModel,r=a.getModel("itemStyle").getItemStyle(["color"]),l=a.getModel("emphasis.itemStyle").getItemStyle(),u=a.getShallow("cursor");Lx(t,function(t){t.setColor(n),t.setStyle(s({fill:n,opacity:i.opacity},r)),Fa(t,l),u&&(t.cursor=u),t.z2=i.z2});var h={},c=e.valueDim.posDesc[+(i.boundingLength>0)],d=t.__pictorialBarRect;Gc(d.style,h,a,n,e.seriesModel,o,c),Fa(d,h)}function Ox(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function Ex(t,e){return e=e||[0,0],p(["x","y"],function(i,n){var o=this.getAxis(i),a=e[n],r=t[n]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-r)-o.dataToCoord(a+r))},this)}function Nx(t,e){return e=e||[0,0],p([0,1],function(i){var n=e[i],o=t[i]/2,a=[],r=[];return a[i]=n-o,r[i]=n+o,a[1-i]=r[1-i]=e[1-i],Math.abs(this.dataToPoint(a)[i]-this.dataToPoint(r)[i])},this)}function zx(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))}function Rx(t,e){return p(["Radius","Angle"],function(i,n){var o=this["get"+i+"Axis"](),a=e[n],r=t[n]/2,s="dataTo"+i,l="category"===o.type?o.getBandWidth():Math.abs(o[s](a-r)-o[s](a+r));return"Angle"===i&&(l=l*Math.PI/180),l},this)}function Bx(t){var e,i=t.type;if("path"===i){var n=t.shape,o=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=Jx(n);e=ba(a,null,o,n.layout||"center"),e.__customPathData=a}else if("image"===i)e=new Dn({}),e.__customImagePath=t.style.image;else if("text"===i)e=new ET({}),e.__customText=t.style.text;else if("group"===i)e=new xM;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');var r=wa(i);eS&&O(r,'graphic type "'+i+'" can not be found.'),e=new r}return e.__customGraphicType=i,e.name=t.name,e}function Vx(t,e,i,o,a,r,s){var l={},u=i.style||{};if(i.shape&&(l.shape=n(i.shape)),i.position&&(l.position=i.position.slice()),i.scale&&(l.scale=i.scale.slice()),i.origin&&(l.origin=i.origin.slice()),i.rotation&&(l.rotation=i.rotation),"image"===t.type&&i.style){var h=l.style={};f(["x","y","width","height"],function(e){Gx(e,h,u,t.style,r)})}if("text"===t.type&&i.style){var h=l.style={};f(["x","y"],function(e){Gx(e,h,u,t.style,r)}),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==t.type&&(t.useStyle(u),r)){t.style.opacity=0;var c=u.opacity;null==c&&(c=1),or(t,{style:{opacity:c}},o,e)}r?t.attr(l):nr(t,l,o,e),i.hasOwnProperty("z2")&&t.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&t.attr("silent",i.silent),i.hasOwnProperty("invisible")&&t.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&t.attr("ignore",i.ignore),i.hasOwnProperty("info")&&t.attr("info",i.info);var d=i.styleEmphasis;Na(t,d),s&&Wa(t,d!==!1)}function Gx(t,e,i,n,o){null==i[t]||o||(e[t]=i[t],i[t]=n[t])}function Fx(t,e,i,n){function o(t){null==t&&(t=m),S&&(v=e.getItemModel(t),y=v.getModel(gR),x=v.getModel(mR),_=e.getItemVisual(t,"color"),S=!1)}function a(t,i){return null==i&&(i=m),e.get(e.getDimension(t||0),i)}function r(i,n){null==n&&(n=m),o(n);var a=v.getModel(fR).getItemStyle();null!=_&&(a.fill=_);var r=e.getItemVisual(n,"opacity");null!=r&&(a.opacity=r);var s=i?qx(i,y):y;return Ya(a,s,null,{autoColor:_,isRectText:!0}),a.text=s.getShallow("show")?C(t.getFormattedLabel(n,"normal"),Vc(e,n)):null,i&&Kx(a,i),a}function l(i,n){null==n&&(n=m),o(n);var a=v.getModel(pR).getItemStyle(),r=i?qx(i,x):x;return Ya(a,r,null,{isRectText:!0},!0),a.text=r.getShallow("show")?L(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),Vc(e,n)):null,i&&Kx(a,i),a}function u(t,i){return null==i&&(i=m),e.getItemVisual(i,t)}function h(t){if(p.getBaseAxis){var e=p.getBaseAxis();return Nh(s({axis:e},t),n)}}function c(){return i.getCurrentSeriesIndices()}function d(t){return er(t,i)}var f=t.get("renderItem"),p=t.coordinateSystem,g={};p&&(eS&&(O(f,"series.render is required."),O(p.prepareCustoms||yR[p.type],"This coordSys does not support custom series.")),g=p.prepareCustoms?p.prepareCustoms():yR[p.type](p));var m,v,y,x,_,w=s({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:a,style:r,styleEmphasis:l,visual:u,barLayout:h,currentSeriesIndices:c,font:d},g.api||{}),b={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:g.coordSys,dataInsideLength:e.count(),encode:Wx(t.getData())},S=!0;return function(t,i){return m=t,S=!0,f&&f(s({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},b),w)}}function Wx(t){var e={};return f(t.dimensions,function(i,n){var o=t.getDimensionInfo(i);if(!o.isExtraCoord){var a=o.coordDim,r=e[a]=e[a]||[];r[o.coordDimIndex]=n}}),e}function Hx(t,e,i,n,o,a){return t=Zx(t,e,i,n,o,a,!0),t&&a.setItemGraphicEl(e,t),t}function Zx(t,e,i,n,o,a,r){var s=!i;i=i||{};var l=i.type,u=i.shape,h=i.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&Qx(u)&&Jx(u)!==t.__customPathData||"image"===l&&t_(h,"image")&&h.image!==t.__customImagePath||"text"===l&&t_(u,"text")&&h.text!==t.__customText)&&(o.remove(t),t=null),!s){var c=!t;return!t&&(t=Bx(i)),Vx(t,e,i,n,a,c,r),"group"===l&&Ux(t,e,i,n,a),o.add(t),t}}function Ux(t,e,i,n,o){var a=i.children,r=a?a.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=s===!1;if(r||l||u){if(l)return void Xx({oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,animatableModel:n,group:t,data:o});u&&t.removeAll();for(var h=0;r>h;h++)a[h]&&Zx(t.childAt(h),e,a[h],n,t,o);eS&&O(!u||t.childCount()===h,"MUST NOT contain empty item in children array when `group.$mergeChildren` is `false`.")}}function Xx(t){new Xu(t.oldChildren,t.newChildren,Yx,Yx,t).add(jx).update(jx).remove($x).execute()}function Yx(t,e){var i=t&&t.name;return null!=i?i:vR+e}function jx(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null,o=null!=e?i.oldChildren[e]:null;Zx(o,i.dataIndex,n,i.animatableModel,i.group,i.data)}function qx(t,e){var i=new mr({},e);return f(dR,function(e,n){t.hasOwnProperty(e)&&(i.option[n]=t[e])}),i}function Kx(t,e){for(var i in e)(e.hasOwnProperty(i)||!dR.hasOwnProperty(i))&&(t[i]=e[i])}function $x(t){var e=this.context,i=e.oldChildren[t];i&&e.group.remove(i)}function Jx(t){return t&&(t.pathData||t.d)}function Qx(t){return t&&(t.hasOwnProperty("pathData")||t.hasOwnProperty("d"))}function t_(t,e){return t&&t.hasOwnProperty(e)}function e_(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function i_(t,e){return e.dim+t.model.componentIndex}function n_(t,e){var i={},n=o_(m(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),o=t.coordinateSystem,a=o.getBaseAxis(),r=i_(o,a),s=e_(t),l=n[r][s],u=l.offset,h=l.width,c=o.getOtherAxis(a),d=t.coordinateSystem.cx,f=t.coordinateSystem.cy,p=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(c.dim),v=e.mapDimension(a.dim),y=_h(e,m),x="radius"!==a.dim||!t.get("roundCap",!0),_="radius"===c.dim?c.dataToRadius(0):c.dataToAngle(0),w=0,b=e.count();b>w;w++){var S=e.get(m,w),M=e.get(v,w),I=S>=0?"p":"n",T=_; +y&&(i[s][M]||(i[s][M]={p:_,n:_}),T=i[s][M][I]);var A,D,C,L;if("radius"===c.dim){var k=c.dataToRadius(S)-_,P=a.dataToAngle(M);Math.abs(k)k?-1:1)*p),A=T,D=T+k,C=P-u,L=C-h,y&&(i[s][M][I]=D)}else{var O=c.dataToAngle(S,x)-_,E=a.dataToRadius(M);Math.abs(O)O?-1:1)*g),A=E+u,D=A+h,C=T,L=T+O,y&&(i[s][M][I]=L)}e.setItemLayout(w,{cx:d,cy:f,r0:A,r:D,startAngle:-C*Math.PI/180,endAngle:-L*Math.PI/180})}}},this)}function o_(t){var e={};f(t,function(t){var i=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=i_(n,o),r=o.getExtent(),s="category"===o.type?o.getBandWidth():Math.abs(r[1]-r[0])/i.count(),l=e[a]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=l.stacks;e[a]=l;var h=e_(t);u[h]||l.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var c=Mr(t.get("barWidth"),s),d=Mr(t.get("barMaxWidth"),s),f=t.get("barGap"),p=t.get("barCategoryGap");c&&!u[h].width&&(c=Math.min(l.remainedWidth,c),u[h].width=c,l.remainedWidth-=c),d&&(u[h].maxWidth=d),null!=f&&(l.gap=f),null!=p&&(l.categoryGap=p)});var i={};return f(e,function(t,e){i[e]={};var n=t.stacks,o=t.bandWidth,a=Mr(t.categoryGap,o),r=Mr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-a)/(l+(l-1)*r);u=Math.max(u,0),f(n,function(t){var e=t.maxWidth;e&&u>e&&(e=Math.min(e,s),t.width&&(e=Math.min(e,t.width)),s-=e,t.width=e,l--)}),u=(s-a)/(l+(l-1)*r),u=Math.max(u,0);var h,c=0;f(n,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+r)}),h&&(c-=h.width*r);var d=-c/2;f(n,function(t,n){i[e][n]=i[e][n]||{offset:d,width:t.width},d+=t.width*(1+r)})}),i}function a_(t,e){sk.call(this,"radius",t,e),this.type="category"}function r_(t,e){e=e||[0,360],sk.call(this,"angle",t,e),this.type="category"}function s_(t,e){return e.type||(e.data?"category":"value")}function l_(t,e,i){var n=e.get("center"),o=i.getWidth(),a=i.getHeight();t.cx=Mr(n[0],o),t.cy=Mr(n[1],a);var r=t.getRadiusAxis(),s=Math.min(o,a)/2,l=e.get("radius");null==l?l=[0,"100%"]:_(l)||(l=[0,l]),l=[Mr(l[0],s),Mr(l[1],s)],r.inverse?r.setExtent(l[1],l[0]):r.setExtent(l[0],l[1])}function u_(t){var e=this,i=e.getAngleAxis(),n=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===e){var o=t.getData();f(o.mapDimension("radius",!0),function(t){n.scale.unionExtentFromData(o,wh(o,t))}),f(o.mapDimension("angle",!0),function(t){i.scale.unionExtentFromData(o,wh(o,t))})}}),jh(i.scale,i.model),jh(n.scale,n.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function h_(t,e){if(t.type=e.get("type"),t.scale=qh(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}function c_(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),o=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:o[0],y2:o[1]}}function d_(t){var e=t.getRadiusAxis();return e.inverse?0:1}function f_(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function p_(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function g_(t,e,i,n,o){var a=e.axis,r=a.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=n.getRadiusAxis().getExtent();if("radius"===a.dim){var d=Oe();Be(d,d,s),Re(d,d,[n.cx,n.cy]),l=rr([r,-o],d);var f=e.getModel("axisLabel").get("rotate")||0,p=Nk.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,h=p.textVerticalAlign}else{var g=c[1];l=n.coordToPoint([g+o,r]);var m=n.cx,v=n.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}function m_(t,e){e.update="updateView",ku(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name);var o=i.coordinateSystem;f(o.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}function v_(t){this._model=t}function y_(t,e,i,n){var o=i.calendarModel,a=i.seriesModel,r=o?o.coordinateSystem:a?a.coordinateSystem:null;return r===this?r[t](n):null}function x_(t,e){var i=t.cellSize;_(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=p([0,1],function(t){return is(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});ns(t,e,{type:"box",ignoreSize:n})}function __(t,e,i){var n,o={},a="toggleSelected"===t;return i.eachComponent("legend",function(i){a&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var r=i.getData();f(r,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);o[e]=o.hasOwnProperty(e)?o[e]&&n:n}})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function w_(t,e,i){var n=e.getBoxLayoutParams(),o=e.get("padding"),a={width:i.getWidth(),height:i.getHeight()},r=ts(n,a,o);VA(e.get("orient"),t,e.get("itemGap"),r.width,r.height),es(t,n,a,o)}function b_(t,e){var i=CA(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var t=new XT({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return t}function S_(t,e,i,n,o,a){var r;return"line"!==e&&e.indexOf("empty")<0?(r=i.getItemStyle(),t.style.stroke=n,a||(r.stroke=o)):r=i.getItemStyle(["borderWidth","borderColor"]),t.setStyle(r)}function M_(t,e,i,n){T_(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),I_(t,e,i,n)}function I_(t,e,i,n){var o=i.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function T_(t,e,i,n){var o=i.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function A_(t,e,i){var n=t.getOrient(),o=[1,1];o[n.index]=0,ns(e,i,{type:"box",ignoreSize:o})}function D_(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return p(qR,function(t){return t+"transition:"+i}).join(";")}function C_(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var o=t.get("lineHeight");null==o&&(o=Math.round(3*i/2)),i&&e.push("line-height:"+o+"px");var a=t.get("textShadowColor"),r=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return r&&e.push("text-shadow:"+s+"px "+l+"px "+r+"px "+a),YR(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function L_(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),o=t.getModel("textStyle"),a=t.get("padding");return i&&e.push(D_(i)),n&&(aS.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+oi(n)),e.push("filter:alpha(opacity=70)"))),YR(["width","color","radius"],function(i){var n="border-"+i,o=jR(n),a=t.get(o);null!=a&&e.push(n+":"+a+("color"===i?"":"px"))}),e.push(C_(o)),null!=a&&e.push("padding:"+CA(a).join("px ")+"px"),e.join(";")+";"}function k_(t,e,i,n,o){var a=e&&e.painter;if(i){var r=a&&a.getViewportRoot();r&&pe(t,r,document.body,n,o)}else{t[0]=n,t[1]=o;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function P_(t,e,i){if(aS.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var o=this._zr=e.getZr(),a=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],k_(this._styleCoord,o,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(n):t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!r._enterable){var e=o.handler,i=o.painter.getViewportRoot();be(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function O_(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function E_(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],O_(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}function N_(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(mr.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new mr(i,e,e.ecModel))}return e}function z_(t,e){return t.dispatchAction||y(e.dispatchAction,e)}function R_(t,e,i,n,o,a,r){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=a&&(t+l+a>n?t-=l+a:t+=a),null!=r&&(e+u+r>o?e-=u+r:e+=r),[t,e]}function B_(t,e,i,n,o){var a=i.getOuterSize(),r=a.width,s=a.height;return t=Math.min(t+r,n)-r,e=Math.min(e+s,o)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function V_(t,e,i){var n=i[0],o=i[1],a=5,r=0,s=0,l=e.width,u=e.height;switch(t){case"inside":r=e.x+l/2-n/2,s=e.y+u/2-o/2;break;case"top":r=e.x+l/2-n/2,s=e.y-o-a;break;case"bottom":r=e.x+l/2-n/2,s=e.y+u+a;break;case"left":r=e.x-n-a,s=e.y+u/2-o/2;break;case"right":r=e.x+l+a,s=e.y+u/2-o/2}return[r,s]}function G_(t){return"center"===t||"middle"===t}function F_(t){eo(t,"label",["show"])}function W_(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function H_(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Z_(t,e,i,n,o,a){var r=[],s=_h(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=K_(e,l,t),h=e.indicesOfNearest(l,u)[0];r[o]=e.get(i,h),r[a]=e.get(l,h);var c=e.get(n,h),d=Ar(e.get(n,h));return d=Math.min(d,20),d>=0&&(r[a]=+r[a].toFixed(d)),[r,c]}function U_(t,e){var i=t.getData(),o=t.coordinateSystem;if(e&&!H_(e)&&!_(e.coord)&&o){var a=o.dimensions,r=X_(e,i,o,t);if(e=n(e),e.type&&rB[e.type]&&r.baseAxis&&r.valueAxis){var s=oB(a,r.baseAxis.dim),l=oB(a,r.valueAxis.dim),u=rB[e.type](i,r.baseDataDim,r.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else{for(var h=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;2>c;c++)rB[h[c]]&&(h[c]=K_(i,i.mapDimension(a[c]),h[c]));e.coord=h}}return e}function X_(t,e,i,n){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=i.getAxis(Y_(n,o.valueDataDim)),o.baseAxis=i.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=n.getBaseAxis(),o.valueAxis=i.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function Y_(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var o=0;on?t.coord&&t.coord[n]:t.value}function K_(t,e,i){if("average"===i){var n=0,o=0;return t.each(e,function(t){isNaN(t)||(n+=t,o++)}),n/o}return"median"===i?t.getMedian(e):t.getDataExtent(e,!0)["max"===i?1:0]}function $_(t,e,i){var n=e.coordinateSystem;t.each(function(o){var a,r=t.getItemModel(o),s=Mr(r.get("x"),i.getWidth()),l=Mr(r.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,o));else if(n){var u=t.get(n.dimensions[0],o),h=t.get(n.dimensions[1],o);a=n.dataToPoint([u,h])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(o,a)})}function J_(t,e,i){var n;n=t?p(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return s({name:t},i)}):[{name:"value",type:"float"}];var o=new dL(n,i),a=p(i.get("data"),x(U_,e));return t&&(a=m(a,x(j_,t))),o.initData(a,null,t?q_:function(t){return t.value}),o}function Q_(t){return!isNaN(t)&&!isFinite(t)}function tw(t,e,i,n){var o=1-t,a=n.dimensions[t];return Q_(e[o])&&Q_(i[o])&&e[t]===i[t]&&n.getAxis(a).containData(e[t])}function ew(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(tw(1,i,n,t)||tw(0,i,n,t)))return!0}return j_(t,e[0])&&j_(t,e[1])}function iw(t,e,i,n,o){var a,r=n.coordinateSystem,s=t.getItemModel(e),l=Mr(s.get("x"),o.getWidth()),u=Mr(s.get("y"),o.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)a=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=r.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);a=r.dataToPoint([c,d])}if("cartesian2d"===r.type){var f=r.getAxis("x"),p=r.getAxis("y"),h=r.dimensions;Q_(t.get(h[0],e))?a[0]=f.toGlobalCoord(f.getExtent()[i?0:1]):Q_(t.get(h[1],e))&&(a[1]=p.toGlobalCoord(p.getExtent()[i?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];t.setItemLayout(e,a)}function nw(t,e,i){var n;n=t?p(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return s({name:t},i)}):[{name:"value",type:"float"}];var o=new dL(n,i),a=new dL(n,i),r=new dL([],i),l=p(i.get("data"),x(lB,e,t,i));t&&(l=m(l,x(ew,t)));var u=t?q_:function(t){return t.value};return o.initData(p(l,function(t){return t[0]}),null,u),a.initData(p(l,function(t){return t[1]}),null,u),r.initData(p(l,function(t){return t[2]})),r.hasItemOption=!0,{from:o,to:a,line:r}}function ow(t){return!isNaN(t)&&!isFinite(t)}function aw(t,e,i){var n=1-t;return ow(e[n])&&ow(i[n])}function rw(t,e){var i=e.coord[0],n=e.coord[1];return"cartesian2d"===t.type&&i&&n&&(aw(1,i,n,t)||aw(0,i,n,t))?!0:j_(t,{coord:i,x:e.x0,y:e.y0})||j_(t,{coord:n,x:e.x1,y:e.y1})}function sw(t,e,i,n,o){var a,r=n.coordinateSystem,s=t.getItemModel(e),l=Mr(s.get(i[0]),o.getWidth()),u=Mr(s.get(i[1]),o.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)a=n.getMarkerPosition(t.getValues(i,e));else{var h=t.get(i[0],e),c=t.get(i[1],e),d=[h,c];r.clampData&&r.clampData(d,d),a=r.dataToPoint(d,!0)}if("cartesian2d"===r.type){var f=r.getAxis("x"),p=r.getAxis("y"),h=t.get(i[0],e),c=t.get(i[1],e);ow(h)?a[0]=f.toGlobalCoord(f.getExtent()["x0"===i[0]?0:1]):ow(c)&&(a[1]=p.toGlobalCoord(p.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}function lw(t,e,i){var n,o,a=["x0","y0","x1","y1"];t?(n=p(t&&t.dimensions,function(t){var i=e.getData(),n=i.getDimensionInfo(i.mapDimension(t))||{};return s({name:t},n)}),o=new dL(p(a,function(t,e){return{name:t,type:n[e%2].type}}),i)):(n=[{name:"value",type:"float"}],o=new dL(n,i));var r=p(i.get("data"),x(uB,e,t,i));t&&(r=m(r,x(rw,t)));var l=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return o.initData(r,null,l),o.hasItemOption=!0,o}function uw(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),hw(t),cw(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});cw(n,"position")||(n.position=t.controlPosition),"none"!==n.position||cw(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}f(t.data||[],function(t){S(t)&&!_(t)&&(!cw(t,"value")&&cw(t,"name")&&(t.value=t.name),hw(t))})}function hw(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},o=n.normal||(n.normal={}),a={normal:1,emphasis:1};f(n,function(t,e){a[e]||cw(o,e)||(o[e]=t)}),i.label&&!cw(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function cw(t,e){return t.hasOwnProperty(e)}function dw(t,e){return ts(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function fw(t,e,i,n){var o=n.style,a=cr(t.get(e),n||{},new Ti(i[0],i[1],i[2],i[3]));return o&&a.setStyle(o),a}function pw(t,e,i,n,a,r){var s=e.get("color");if(a)a.setColor(s),i.add(a),r&&r.onUpdate(a);else{var l=t.get("symbol");a=oc(l,-1,-1,2,2,s),a.setStyle("strokeNoScale",!0),i.add(a),r&&r.onCreate(a)}var u=e.getItemStyle(["color","symbol","symbolSize"]);a.setStyle(u),n=o({rectHover:!0,z2:100},n,!0);var h=t.get("symbolSize");h=h instanceof Array?h.slice():[+h,+h],h[0]/=2,h[1]/=2,n.scale=h;var c=t.get("symbolOffset");if(c){var d=n.position=n.position||[0,0];d[0]+=Mr(c[0],h[0]),d[1]+=Mr(c[1],h[1])}var f=t.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function gw(t,e,i,n,o){if(!t.dragging){var a=n.getModel("checkpointStyle"),r=i.dataToCoord(n.getData().get(["value"],e));o||!a.get("animation",!0)?t.attr({position:[r,0]}):(t.stopAnimation(!0),t.animateTo({position:[r,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}function mw(t){return u(_B,t)>=0}function vw(t,e){t=t.slice();var i=p(t,jr);e=(e||[]).slice();var n=p(e,jr);return function(o,a){f(t,function(t,r){for(var s={name:t,capital:i[r]},l=0;l=0}function o(t,n){var o=!1;return e(function(e){f(i(t,e)||[],function(t){n.records[e.name][t]&&(o=!0)})}),o}function a(t,n){n.nodes.push(t),e(function(e){f(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(t,s)&&o(t,s)&&(a(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;a(i,s);var l;do l=!1,t(r);while(l);return s}}function xw(t,e,i){var n=[1/0,-1/0];return bB(i,function(t){var i=t.getData();i&&bB(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]n[1]&&(n[1]=e[1])})}),n[1]0?0:0/0);var r=i.getMax(!0);return null!=r&&"dataMax"!==r&&"function"!=typeof r?e[1]=r:o&&(e[1]=a>0?a-1:0/0),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function ww(t,e){var i=t.getAxisModel(),n=t._percentWindow,o=t._valueWindow;if(n){var a=Cr(o,[0,500]);a=Math.min(a,20);var r=e||0===n[0]&&100===n[1];i.setRange(r?null:+o[0].toFixed(a),r?null:+o[1].toFixed(a))}}function bw(t){var e=t._minMaxSpan={},i=t._dataZoomModel,n=t._dataExtent;bB(["min","max"],function(o){var a=i.get(o+"Span"),r=i.get(o+"ValueSpan");null!=r&&(r=t.getAxisModel().axis.scale.parse(r)),null!=r?a=Sr(n[0]+r,n,[0,100],!0):null!=a&&(r=Sr(a,[0,100],n,!0)-n[0]),e[o+"Span"]=a,e[o+"ValueSpan"]=r})}function Sw(t){var e={};return IB(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function Mw(t,e){var i=t._rangePropMode,n=t.get("rangeMode");IB([["start","startValue"],["end","endValue"]],function(t,o){var a=null!=e[t[0]],r=null!=e[t[1]];a&&!r?i[o]="percent":!a&&r?i[o]="value":n?i[o]=n[o]:a&&(i[o]="percent")})}function Iw(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function Tw(t){return"vertical"===t?"ns-resize":"ew-resize"}function Aw(t,e){var i=Lw(t),n=e.dataZoomId,o=e.coordId;f(i,function(t){var i=t.dataZoomInfos;i[n]&&u(e.allCoordIds,o)<0&&(delete i[n],t.count--)}),Pw(i);var a=i[o];a||(a=i[o]={coordId:o,dataZoomInfos:{},count:0},a.controller=kw(t,a),a.dispatchAction=x(Ow,t)),!a.dataZoomInfos[n]&&a.count++,a.dataZoomInfos[n]=e;var r=Ew(a.dataZoomInfos);a.controller.enable(r.controlType,r.opt),a.controller.setPointerChecker(e.containsPoint),Sl(a,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function Dw(t,e){var i=Lw(t);f(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),Pw(i)}function Cw(t){return t.type+"\x00_"+t.id}function Lw(t){var e=t.getZr();return e[WB]||(e[WB]={})}function kw(t,e){var i=new up(t.getZr());return f(["pan","zoom","scrollMove"],function(t){i.on(t,function(i){var n=[];f(e.dataZoomInfos,function(o){if(i.isAvailableBehavior(o.dataZoomModel.option)){var a=(o.getRange||{})[t],r=a&&a(e.controller,i);!o.dataZoomModel.get("disabled",!0)&&r&&n.push({dataZoomId:o.dataZoomId,start:r[0],end:r[1]})}}),n.length&&e.dispatchAction(n)})}),i}function Pw(t){f(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function Ow(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function Ew(t){var e,i="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return f(t,function(t){var a=t.dataZoomModel,r=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;n[i+r]>n[i+e]&&(e=r),o&=a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function Nw(t){return function(e,i,n,o){var a=this._range,r=a.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,i,n,o);return zN(l,r,[0,100],"all"),this._range=r,a[0]!==r[0]||a[1]!==r[1]?r:void 0}}}function zw(t){var e={};f(t,function(t){e[t]=1}),t.length=0,f(e,function(e,i){t.push(i)})}function Rw(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Bw(t,e,i){function o(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}var a={};return qB(e,function(e){var r=a[e]=o();qB(t[e],function(t,o){if(kO.isValidType(o)){var a={type:o,visual:t};i&&i(a,e),r[o]=new kO(a),"opacity"===o&&(a=n(a),a.type="colorAlpha",r.__hidden.__alphaForOpacity=new kO(a))}})}),a}function Vw(t,e,i){var o;f(i,function(t){e.hasOwnProperty(t)&&Rw(e[t])&&(o=!0)}),o&&f(i,function(i){e.hasOwnProperty(i)&&Rw(e[i])?t[i]=n(e[i]):delete t[i]})}function Gw(t,e,i,n,o,a){function r(t){return i.getItemVisual(h,t)}function s(t,e){i.setItemVisual(h,t,e)}function l(t,l){h=null==a?t:l;var c=i.getRawDataItem(h);if(!c||c.visualMap!==!1)for(var d=n.call(o,t),f=e[d],p=u[d],g=0,m=p.length;m>g;g++){var v=p[g];f[v]&&f[v].applyVisual(t,r,s)}}var u={};f(t,function(t){var i=kO.prepareVisualTypes(e[t]);u[t]=i});var h;null==a?i.each(l):i.each([a],l)}function Fw(t,e,i,n){function o(t,o){function r(t){return o.getItemVisual(l,t)}function s(t,e){o.setItemVisual(l,t,e)}null!=n&&(n=o.getDimension(n));for(var l;null!=(l=t.next());){var u=o.getRawDataItem(l);if(!u||u.visualMap!==!1)for(var h=null!=n?o.get(n,l,!0):l,c=i(h),d=e[c],f=a[c],p=0,g=f.length;g>p;p++){var m=f[p];d[m]&&d[m].applyVisual(h,r,s)}}}var a={};return f(t,function(t){var i=kO.prepareVisualTypes(e[t]);a[t]=i}),{progress:o}}function Ww(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var o=n.range,a=e[t];return Hw(a,o)}},rect:function(n,o,a){if(n){var r=a.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]=0)&&t(a,n,o)})}function Uw(t){return t[0]>t[1]&&t.reverse(),t}function Xw(t,e){return co(t,e,{includeMainTypes:eV})}function Yw(t,e,i,n){eS&&O("cartesian2d"===i.type,"lineX/lineY brush is available only in cartesian2d.");var o=i.getAxis(["x","y"][t]),a=Uw(p([0,1],function(t){return e?o.coordToData(o.toLocalCoord(n[t])):o.toGlobalCoord(o.dataToCoord(n[t]))})),r=[];return r[t]=a,r[1-t]=[0/0,0/0],{values:a,xyMinMax:r}}function jw(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function qw(t,e){var i=Kw(t),n=Kw(e),o=[i[0]/n[0],i[1]/n[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function Kw(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[0/0,0/0]}function $w(t){t.eachComponent({mainType:"brush"},function(e){var i=e.brushTargetManager=new Zw(e.option,t);i.setInputRanges(e.areas,t)})}function Jw(t,e,i,n,o){if(o){var a=t.getZr();if(!a[hV]){a[uV]||(a[uV]=Qw);var r=Sl(a,uV,i,e);r(t,n)}}}function Qw(t,e){if(!t.isDisposed()){var i=t.getZr();i[hV]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[hV]=!1}}function tb(t,e,i,n){for(var o=0,a=e.length;a>o;o++){var r=e[o];if(t[r.brushType](n,i,r.selectors,r))return!0}}function eb(t){var e=t.brushSelector;if(b(e)){var i=[];return f(KB,function(t,n){i[n]=function(i,n,o,a){var r=n.getItemLayout(i);return t[e](r,o,a)}}),i}if(w(e)){var n={};return f(KB,function(t,i){n[i]=e}),n}return e}function ib(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(_(i)?u(i,e)<0:e!==i)}function nb(t){var e=t.selectors={};return f(KB[t.brushType],function(i,n){e[n]=function(n){return i(n,e,t)}}),t}function ob(t){return new Ti(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function ab(t,e){return o({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new mr(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function rb(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}function sb(t,e){pV[t]=e}function lb(t){return pV[t]}function ub(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}function hb(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function cb(t,e,i,n){function o(t){return l[t]}function a(t,e){l[t]=e}for(var r=e.targetVisuals[n],s=kO.prepareVisualTypes(r),l={color:t.getData().getVisual("color")},u=0,h=s.length;h>u;u++){var c=s[u],d=r["opacity"===c?"__alphaForOpacity":c];d&&d.applyVisual(i,o,a)}return l.color}function db(t,e,i){if(i[0]===i[1])return i.slice();for(var n=200,o=(i[1]-i[0])/n,a=i[0],r=[],s=0;n>=s&&ac;c++)h[s[1-r][c]]=u[c],h[l[c]]=2===c?i[0]:n[l[c]];var d=[["x","width",3],["y","height",0]][r],f=ts(h,a,n.padding);return l[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*a[d[1]]?0:1]}function pb(t,e){return f(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}function gb(t,e,i,n){return new WT({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){ES(t.event)},ondragend:n})}function mb(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function vb(t,e,i,n){return t?[[0,-NV(e,zV(i,0))],[BV,0],[0,NV(e,zV(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function yb(t,e,i){var n=RV/2,o=t.get("hoverLinkDataSize");return o&&(n=OV(o,e,i,!0)/2),n}function xb(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function _b(t){return"vertical"===t?"ns-resize":"ew-resize"}function wb(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}function bb(t){return 0===t.indexOf("my")}function Sb(t){this.model=t}function Mb(t){this.model=t}function Ib(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var o=t.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)i.push(t);else{var a=o.getBaseAxis();if("category"===a.type){var r=a.dim+"_"+a.index;e[r]||(e[r]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[r].series.push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function Tb(t){var e=[];return f(t,function(t){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,a=[" "].concat(p(t.series,function(t){return t.name})),r=[i.model.getCategories()];f(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(o),function(t){return t}))});for(var s=[a.join(QV)],l=0;lr;r++)n[r]=arguments[r];i.push((a?a+QV:"")+n.join(QV))}),i.join("\n")}).join("\n\n"+JV+"\n\n")}function Db(t){var e=Ib(t);return{value:m([Tb(e.seriesGroupByCategoryAxis),Ab(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+JV+"\n\n"),meta:e.meta}}function Cb(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Lb(t){var e=t.slice(0,t.indexOf("\n"));return e.indexOf(QV)>=0?!0:void 0}function kb(t){for(var e=t.split(/\n+/g),i=Cb(e.shift()).split(tG),n=[],o=p(i,function(t){return{name:t,data:[]}}),a=0;a=0;o--){var a=i[o];if(a[n])break}if(0>o){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var s=r.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}}),i.push(e)}function Rb(t){var e=Gb(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return eG(i,function(t,i){for(var o=e.length-1;o>=0;o--){var t=e[o][i];if(t){n[i]=t;break}}}),n}function Bb(t){t[iG]=null}function Vb(t){return Gb(t).length}function Gb(t){var e=t[iG];return e||(e=t[iG]=[{}]),e}function Fb(t,e,i){(this._brushController=new Hm(i.getZr())).on("brush",y(this._onBrush,this)).mount(),this._isZoomActive}function Wb(t){var e={};return f(["xAxisIndex","yAxisIndex"],function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(e[i]===!1||"none"===e[i])&&(e[i]=[])}),e}function Hb(t,e){t.setIconStatus("back",Vb(e)>1?"emphasis":"normal")}function Zb(t,e,i,n,o){var a=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(a="dataZoomSelect"===n.key?n.dataZoomSelectActive:!1),i._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var r=new Zw(Wb(t.option),e,{include:["grid"]});i._brushController.setPanels(r.makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(a?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}function Ub(t){this.model=t}function Xb(t,e,i,n){var o=i.type;eS&&O(o,"graphic type MUST be set");var a=hG.hasOwnProperty(o)?hG[o]:wa(o);eS&&O(a,"graphic type can not be found");var r=new a(i);e.add(r),n.set(t,r),r.__ecGraphicId=t}function Yb(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse(function(t){Yb(t,e)}),e.removeKey(t.__ecGraphicId),i.remove(t))}function jb(t){return t=r({},t),f(["id","parentId","$action","hv","bounding"].concat(RA),function(e){delete t[e]}),t}function qb(t,e){var i;return f(e,function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)}),i}function Kb(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function $b(t,e,i){var n=r({},i),a=t[e],s=i.$action||"merge";if("merge"===s)if(a){if(eS){var l=i.type;O(!l||a.type===l,'Please set $action: "replace" to change `type`')}o(a,n,!0),ns(a,n,{ignoreSize:!0}),as(i,a)}else t[e]=n;else"replace"===s?t[e]=n:"remove"===s&&a&&(t[e]=null)}function Jb(t,e){t&&(t.hv=e.hv=[qb(e,["left","right"]),qb(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function Qb(t,e){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}var tS;"undefined"!=typeof window?tS=window.__DEV__:"undefined"!=typeof global&&(tS=global.__DEV__),"undefined"==typeof tS&&(tS=!0);var eS=tS,iS=2311,nS=function(){return iS++},oS={};oS="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:e(navigator.userAgent); +var aS=oS,rS={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},sS={"[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},lS=Object.prototype.toString,uS=Array.prototype,hS=uS.forEach,cS=uS.filter,dS=uS.slice,fS=uS.map,pS=uS.reduce,gS={},mS=function(){return gS.createCanvas()};gS.createCanvas=function(){return document.createElement("canvas")};var vS,yS="__ec_primitive__";R.prototype={constructor:R,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var i in this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}};var xS=(Object.freeze||Object)({$override:i,clone:n,merge:o,mergeAll:a,extend:r,defaults:s,createCanvas:mS,getContext:l,indexOf:u,inherits:h,mixin:c,isArrayLike:d,each:f,map:p,reduce:g,filter:m,find:v,bind:y,curry:x,isArray:_,isFunction:w,isString:b,isObject:S,isBuiltInObject:M,isTypedArray:I,isDom:T,eqNaN:A,retrieve:D,retrieve2:C,retrieve3:L,slice:k,normalizeCssArray:P,assert:O,trim:E,setAsPrimitive:N,isPrimitive:z,createHashMap:B,concatArray:V,noop:G}),_S="undefined"==typeof Float32Array?Array:Float32Array,wS=j,bS=q,SS=ee,MS=ie,IS=(Object.freeze||Object)({create:F,copy:W,clone:H,set:Z,add:U,scaleAndAdd:X,sub:Y,len:j,length:wS,lenSquare:q,lengthSquare:bS,mul:K,div:$,dot:J,scale:Q,normalize:te,distance:ee,dist:SS,distanceSquare:ie,distSquare:MS,negate:ne,lerp:oe,applyTransform:ae,min:re,max:se});le.prototype={constructor:le,_dragStart:function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(ue(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,o=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(o,a,t),this.dispatchToElement(ue(e,t),"drag",t.event);var r=this.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=r,e!==r&&(s&&r!==s&&this.dispatchToElement(ue(s,t),"dragleave",t.event),r&&r!==s&&this.dispatchToElement(ue(r,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(ue(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(ue(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var TS=Array.prototype.slice,AS=function(t){this._$handlers={},this._$eventProcessor=t};AS.prototype={constructor:AS,one:function(t,e,i,n){return ce(this,t,e,i,n,!0)},on:function(t,e,i,n){return ce(this,t,e,i,n,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],o=0,a=i[t].length;a>o;o++)i[t][o].h!==e&&n.push(i[t][o]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,o=n.length;o>3&&(n=TS.call(n,1));for(var a=e.length,r=0;a>r;){var s=e[r];if(i&&i.filter&&null!=s.query&&!i.filter(t,s.query))r++;else{switch(o){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,n[1]);break;case 3:s.h.call(s.ctx,n[1],n[2]);break;default:s.h.apply(s.ctx,n)}s.one?(e.splice(r,1),a--):r++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,o=n.length;o>4&&(n=TS.call(n,1,n.length-1));for(var a=n[n.length-1],r=e.length,s=0;r>s;){var l=e[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(o){case 1:l.h.call(a);break;case 2:l.h.call(a,n[1]);break;case 3:l.h.call(a,n[1],n[2]);break;default:l.h.apply(a,n)}l.one?(e.splice(s,1),r--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var DS=Math.log(2),CS="___zrEVENTSAVED",LS=[],kS="undefined"!=typeof window&&!!window.addEventListener,PS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,OS=[],ES=kS?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},NS=function(){this._track=[]};NS.prototype={constructor:NS,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},a=0,r=n.length;r>a;a++){var s=n[a],l=xe(i,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},_recognize:function(t){for(var e in zS)if(zS.hasOwnProperty(e)){var i=zS[e](this._track,t);if(i)return i}}};var zS={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,o=(t[i-2]||{}).points||n;if(o&&o.length>1&&n&&n.length>1){var a=Te(n)/Te(o);!isFinite(a)&&(a=1),e.pinchScale=a;var r=Ae(n);return e.pinchX=r[0],e.pinchY=r[1],{type:"pinch",target:t[0].target,event:e}}}}},RS="silent";Le.prototype.dispose=function(){};var BS=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],VS=function(t,e,i,n){AS.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new Le,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,le.call(this),this.setHandlerProxy(i)};VS.prototype={constructor:VS,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(BS,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=Pe(this,e,i),o=this._hovered,a=o.target;a&&!a.__zr&&(o=this.findHover(o.x,o.y),a=o.target);var r=this._hovered=n?{x:e,y:i}:this.findHover(e,i),s=r.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(r,"mousemove",t),s&&s!==a&&this.dispatchToElement(r,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,i=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!i&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var o="on"+e,a=De(e,t,i);n&&(n[o]&&(a.cancelBubble=n[o].call(n,a)),n.trigger(e,a),n=n.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),o={x:t,y:e},a=n.length-1;a>=0;a--){var r;if(n[a]!==i&&!n[a].ignore&&(r=ke(n[a],t,e))&&(!o.topTarget&&(o.topTarget=n[a]),r!==RS)){o.target=n[a];break}}return o},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new NS);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var o=n.type;t.gestureEvent=o,this.dispatchToElement({target:n.target},o,n.event)}}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){VS.prototype[t]=function(e){var i,n,o=e.zrX,a=e.zrY,r=Pe(this,o,a);if("mouseup"===t&&r||(i=this.findHover(o,a),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||SS(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),c(VS,AS),c(VS,le);var GS="undefined"==typeof Float32Array?Array:Float32Array,FS=(Object.freeze||Object)({create:Oe,identity:Ee,copy:Ne,mul:ze,translate:Re,rotate:Be,scale:Ve,invert:Ge,clone:Fe}),WS=Ee,HS=5e-5,ZS=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},US=ZS.prototype;US.transform=null,US.needLocalTransform=function(){return We(this.rotation)||We(this.position[0])||We(this.position[1])||We(this.scale[0]-1)||We(this.scale[1]-1)};var XS=[];US.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(!i&&!e)return void(n&&WS(n));n=n||Oe(),i?this.getLocalTransform(n):WS(n),e&&(i?ze(n,t.transform,n):Ne(n,t.transform)),this.transform=n;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(XS);var a=XS[0]<0?-1:1,r=XS[1]<0?-1:1,s=((XS[0]-a)*o+a)/XS[0]||0,l=((XS[1]-r)*o+r)/XS[1]||0;n[0]*=s,n[1]*=s,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||Oe(),Ge(this.invTransform,n)},US.getLocalTransform=function(t){return ZS.getLocalTransform(this,t)},US.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},US.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var YS=[],jS=Oe();US.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,o=this.scale;We(e-1)&&(e=Math.sqrt(e)),We(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],o[0]=e,o[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},US.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(ze(YS,t.invTransform,e),e=YS);var i=this.origin;i&&(i[0]||i[1])&&(jS[4]=i[0],jS[5]=i[1],ze(YS,e,jS),YS[4]-=i[0],YS[5]-=i[1],e=YS),this.setLocalTransform(e)}},US.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},US.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&ae(i,i,n),i},US.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&ae(i,i,n),i},ZS.getLocalTransform=function(t,e){e=e||[],WS(e);var i=t.origin,n=t.scale||[1,1],o=t.rotation||0,a=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),Ve(e,e,n),o&&Be(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=a[0],e[5]+=a[1],e};var qS={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-qS.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*qS.bounceIn(2*t):.5*qS.bounceOut(2*t-1)+.5}};He.prototype={constructor:He,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var i=(t-this._startTime-this._pausedTime)/this._life;if(!(0>i)){i=Math.min(i,1);var n=this.easing,o="string"==typeof n?qS[n]:n,a="function"==typeof o?o(i):i;return this.fire("frame",a),1===i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var KS=function(){this.head=null,this.tail=null,this._len=0},$S=KS.prototype;$S.insert=function(t){var e=new JS(t);return this.insertEntry(e),e},$S.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},$S.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},$S.len=function(){return this._len},$S.clear=function(){this.head=this.tail=null,this._len=0};var JS=function(t){this.value=t,this.next,this.prev},QS=function(t){this._list=new KS,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},tM=QS.prototype;tM.put=function(t,e){var i=this._list,n=this._map,o=null;if(null==n[t]){var a=i.len(),r=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=i.head;i.remove(s),delete n[s.key],o=s.value,this._lastRemovedEntry=s}r?r.value=e:r=new JS(e),r.key=t,i.insertEntry(r),n[t]=r}return o},tM.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},tM.clear=function(){this._list.clear(),this._map={}};var eM={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]},iM=new QS(20),nM=null,oM=ai,aM=ri,rM=(Object.freeze||Object)({parse:ti,lift:ni,toHex:oi,fastLerp:ai,fastMapToColor:oM,lerp:ri,mapToColor:aM,modifyHSL:si,modifyAlpha:li,stringify:ui}),sM=Array.prototype.slice,lM=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||hi,this._setter=n||ci,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};lM.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var o=this._getter(this._target,n);if(null==o)continue;0!==t&&i[n].push({time:0,value:xi(o)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;ti;i++)t[i].call(this)},start:function(t,e){var i,n=this,o=0,a=function(){o--,o||n._doneCallback()};for(var r in this._tracks)if(this._tracks.hasOwnProperty(r)){var s=bi(this,t,a,this._tracks[r],r,e);s&&(this._clipList.push(s),o++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(t,e){l(t,e);for(var i=0;il;l++)s&&(s=s[r[l]]);s&&(i=s)}else i=o;if(!i)return void fM('Property "'+t+'" is not existed in element '+o.id);var c=o.animators,d=new lM(i,e);return d.during(function(){o.dirty(n)}).done(function(){c.splice(u(c,d),1)}),c.push(d),a&&a.animation.addAnimator(d),d},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;i>n;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,o,a){Si(this,t,e,i,n,o,a)},animateFrom:function(t,e,i,n,o,a){Si(this,t,e,i,n,o,a,!0)}};var gM=function(t){ZS.call(this,t),AS.call(this,t),pM.call(this,t),this.id=t.id||nS()};gM.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(S(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;in||i>s||l>a||o>u)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new Ti(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Ti.create=function(t){return new Ti(t.x,t.y,t.width,t.height)};var xM=function(t){t=t||{},gM.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};xM.prototype={constructor:xM,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof xM&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,o=u(n,t);return 0>o?this:(n.splice(o,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof xM&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;en;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,aS.canvasSupported&&Ei(i,Ni)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];for(var o=n,a=t;o;)o.parent=a,o.updateTransform(),e.push(o),a=o,o=o.clipPath}if(t.isGroup){for(var r=t._children,s=0;se;e++)this.delRoot(t[e]);else{var o=u(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof xM&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:Ni};var SM={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},MM=function(t,e,i){return SM.hasOwnProperty(e)?i*=t.dpr:i},IM={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},TM=9,AM=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],DM=function(t){this.extendFrom(t,!1)};DM.prototype={constructor:DM,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){var n=this,o=i&&i.style,a=!o||t.__attrCachedBy!==IM.STYLE_BIND;t.__attrCachedBy=IM.STYLE_BIND;for(var r=0;r0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||e!==!0&&(e===!1?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n="radial"===e.type?Ri:zi,o=n(t,e,i),a=e.colorStops,r=0;r=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;eo;){var a=t[o],r=a.__from;r&&r.__zr?(o++,r.invisible||(a.transform=r.transform,a.invTransform=r.invTransform,a.__clipPaths=r.__clipPaths,this._doPaintEl(a,i,!0,n))):(t.splice(o,1),r.__hoverMir=null,e--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(KM)},_paintList:function(t,e,i){if(this._redrawId===i){e=e||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var o=this;EM(function(){o._paintList(t,e,i)})}}},_compositeManually:function(){var t=this.getLayer($M).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},_doPaintList:function(t,e){for(var i=[],n=0;n15)break}}a.__drawIndex=m,a.__drawIndex0&&t>n[0]){for(r=0;o-1>r&&!(n[r]t);r++);a=i[n[r]]}if(n.splice(r+1,0,t),i[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)},eachLayer:function(t,e){var i,n,o=this._zlevelList;for(n=0;n0?JM:0),this._needsManuallyCompositing),s.__builtin__||fM("ZLevel "+l+" has been used by unkown layer "+s.id),s!==a&&(s.__used=!0,s.__startIndex!==i&&(s.__dirty=!0),s.__startIndex=i,s.__drawIndex=s.incremental?-1:i,e(i),a=s),n.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=i))}e(i),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?o(i[t],e,!0):i[t]=e;for(var n=0;n=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;ir;r++){var s=i[r],l=s.step(t,e);l&&(o.push(l),a.push(s))}for(var r=0;n>r;)i[r]._needsRemove?(i[r]=i[n-1],i.pop(),n--):r++;n=o.length;for(var r=0;n>r;r++)a[r].fire(o[r]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(EM(t),!e._paused&&e._update())}var e=this;this._running=!0,EM(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){e=e||{};var i=new lM(t,e.loop,e.getter,e.setter);return this.addAnimator(i),i}},c(nI,AS);var oI=300,aI=aS.domSupported,rI=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=p(t,function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:n}}(),sI={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lI=Fn.prototype;lI.stopPropagation=lI.stopImmediatePropagation=lI.preventDefault=G;var uI={mousedown:function(t){t=be(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=be(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||Xn(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=be(this.dom,t),Xn(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=be(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=Gn(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=be(this.dom,t),Bn(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),uI.mousemove.call(this,t),uI.mousedown.call(this,t)},touchmove:function(t){t=be(this.dom,t),Bn(t),this.handler.processGesture(t,"change"),uI.mousemove.call(this,t)},touchend:function(t){t=be(this.dom,t),Bn(t),this.handler.processGesture(t,"end"),uI.mouseup.call(this,t),+new Date-this._lastTouchMoment=0||n&&u(n,r)<0)){var s=e.getShallow(r);null!=s&&(o[t[a][0]]=s)}}return o}},DI=AI([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),CI={getLineStyle:function(t){var e=DI(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?!1:"dashed"===e?[n,n]:[i,i]}},LI=AI([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),kI={getAreaStyle:function(t,e){return LI(this,t,e)}},PI=Math.pow,OI=Math.sqrt,EI=1e-8,NI=1e-4,zI=OI(3),RI=1/3,BI=F(),VI=F(),GI=F(),FI=Math.min,WI=Math.max,HI=Math.sin,ZI=Math.cos,UI=2*Math.PI,XI=F(),YI=F(),jI=F(),qI=[],KI=[],$I={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},JI=[],QI=[],tT=[],eT=[],iT=Math.min,nT=Math.max,oT=Math.cos,aT=Math.sin,rT=Math.sqrt,sT=Math.abs,lT="undefined"!=typeof Float32Array,uT=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};uT.prototype={constructor:uT,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,i){i=i||0,this._ux=sT(i/cM/t)||0,this._uy=sT(i/cM/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData($I.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=sT(t-this._xi)>this._ux||sT(e-this._yi)>this._uy||this._len<5;return this.addData($I.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,o,a){return this.addData($I.C,t,e,i,n,o,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,o,a):this._ctx.bezierCurveTo(t,e,i,n,o,a)),this._xi=o,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData($I.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,o,a){return this.addData($I.A,t,e,i,i,n,o-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,a),this._xi=oT(o)*i+t,this._yi=aT(o)*i+e,this},arcTo:function(t,e,i,n,o){return this._ctx&&this._ctx.arcTo(t,e,i,n,o),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData($I.R,t,e,i,n),this},closePath:function(){this.addData($I.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ii;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,o=0;e>o;o++)i+=t[o].len();lT&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var o=0;e>o;o++)for(var a=t[o].data,r=0;re.length&&(this._expandData(),e=this.data);for(var i=0;ia&&(a=o+a),a%=o,f-=a*h,p-=a*c;h>0&&t>=f||0>h&&f>=t||0===h&&(c>0&&e>=p||0>c&&p>=e);)n=this._dashIdx,i=r[n],f+=h*i,p+=c*i,this._dashIdx=(n+1)%g,h>0&&l>f||0>h&&f>l||c>0&&u>p||0>c&&p>u||s[n%2?"moveTo":"lineTo"](h>=0?iT(f,t):nT(f,t),c>=0?iT(p,e):nT(p,e));h=f-t,c=p-e,this._dashOffset=-rT(h*h+c*c)},_dashedBezierTo:function(t,e,i,n,o,a){var r,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=Ao,y=0,x=this._dashIdx,_=f.length,w=0;for(0>d&&(d=c+d),d%=c,r=0;1>r;r+=.1)s=v(g,t,i,o,r+.1)-v(g,t,i,o,r),l=v(m,e,n,a,r+.1)-v(m,e,n,a,r),y+=rT(s*s+l*l);for(;_>x&&(w+=f[x],!(w>d));x++);for(r=(w-d)/y;1>=r;)u=v(g,t,i,o,r),h=v(m,e,n,a,r),x%2?p.moveTo(u,h):p.lineTo(u,h),r+=f[x]/y,x=(x+1)%_;x%2!==0&&p.lineTo(o,a),s=o-u,l=a-h,this._dashOffset=-rT(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var o=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,o,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,lT&&(this.data=new Float32Array(t)))},getBoundingRect:function(){JI[0]=JI[1]=tT[0]=tT[1]=Number.MAX_VALUE,QI[0]=QI[1]=eT[0]=eT[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,o=0,a=0;ac;){var d=s[c++];switch(1===c&&(n=s[c],o=s[c+1],e=n,i=o),d){case $I.M:e=n=s[c++],i=o=s[c++],t.moveTo(n,o);break;case $I.L:a=s[c++],r=s[c++],(sT(a-n)>l||sT(r-o)>u||c===h-1)&&(t.lineTo(a,r),n=a,o=r);break;case $I.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],o=s[c-1];break;case $I.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],o=s[c-1];break;case $I.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],w=g>m?g:m,b=g>m?1:g/m,S=g>m?m/g:1,M=Math.abs(g-m)>.001,I=v+y;M?(t.translate(f,p),t.rotate(x),t.scale(b,S),t.arc(0,0,w,v,I,1-_),t.scale(1/b,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,w,v,I,1-_),1===c&&(e=oT(v)*g+f,i=aT(v)*m+p),n=oT(I)*g+f,o=aT(I)*m+p;break;case $I.R:e=n=s[c],i=o=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case $I.Z:t.closePath(),n=e,o=i}}}},uT.CMD=$I;var hT=2*Math.PI,cT=2*Math.PI,dT=uT.CMD,fT=2*Math.PI,pT=1e-4,gT=[-1,-1,-1],mT=[-1,-1],vT=PM.prototype.getCanvasPattern,yT=Math.abs,xT=new uT(!0);oa.prototype={constructor:oa,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var i=this.style,n=this.path||xT,o=i.hasStroke(),a=i.hasFill(),r=i.fill,s=i.stroke,l=a&&!!r.colorStops,u=o&&!!s.colorStops,h=a&&!!r.image,c=o&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=i.getGradient(t,r,d)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=vT.call(r,t)),u?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=vT.call(s,t));var f=i.lineDash,p=i.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();if(n.setScale(m[0],m[1],this.segmentIgnoreThreshold),this.__dirtyPath||f&&!g&&o?(n.beginPath(t),f&&!g&&(n.setLineDash(f),n.setLineDashOffset(p)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a)if(null!=i.fillOpacity){var v=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,n.fill(t),t.globalAlpha=v}else n.fill(t);if(f&&g&&(t.setLineDash(f),t.lineDashOffset=p),o)if(null!=i.strokeOpacity){var v=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,n.stroke(t),t.globalAlpha=v}else n.stroke(t);f&&g&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(){},createPathProxy:function(){this.path=new uT},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new uT),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.lineWidth,r=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),r>1e-10&&(o.width+=a/r,o.height+=a/r,o.x-=a/r/2,o.y-=a/r/2)}return o}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var a=this.path.data;if(o.hasStroke()){var r=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(o.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),na(a,r/s,t,e)))return!0}if(o.hasFill())return ia(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):An.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(S(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&yT(t[0]-1)>1e-10&&yT(t[3]-1)>1e-10?Math.sqrt(yT(t[0]*t[3]-t[2]*t[1])):1}},oa.extend=function(t){var e=function(e){oa.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var o in i)!n.hasOwnProperty(o)&&i.hasOwnProperty(o)&&(n[o]=i[o])}t.init&&t.init.call(this,e)};h(e,oa);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},h(oa,An);var _T=uT.CMD,wT=[[],[],[]],bT=Math.sqrt,ST=Math.atan2,MT=function(t,e){var i,n,o,a,r,s,l=t.data,u=_T.M,h=_T.C,c=_T.L,d=_T.R,f=_T.A,p=_T.Q;for(o=0,a=0;or;r++){var s=wT[r];s[0]=l[o++],s[1]=l[o++],ae(s,s,e),l[a++]=s[0],l[a++]=s[1]}}},IT=Math.sqrt,TT=Math.sin,AT=Math.cos,DT=Math.PI,CT=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},LT=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(CT(t)*CT(e))},kT=function(t,e){return(t[0]*e[1]=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var o=0;oa;a++)o+=ee(t[a-1],t[a]);var r=o/2;r=i>r?i:r;for(var a=0;r>a;a++){var s,l,u,h=a/(r-1)*(e?i:i-1),c=Math.floor(h),d=h-c,f=t[c%i];e?(s=t[(c-1+i)%i],l=t[(c+1)%i],u=t[(c+2)%i]):(s=t[0===c?c:c-1],l=t[c>i-2?i-1:c+1],u=t[c>i-3?i-1:c+2]);var p=d*d,g=d*p;n.push([ca(s[0],f[0],l[0],u[0],d,p,g),ca(s[1],f[1],l[1],u[1],d,p,g)])}return n},FT=function(t,e,i,n){var o,a,r,s,l=[],u=[],h=[],c=[];if(n){r=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;f>d;d++)re(r,r,t[d]),se(s,s,t[d]);re(r,r,n[0]),se(s,s,n[1])}for(var d=0,f=t.length;f>d;d++){var p=t[d];if(i)o=t[d?d-1:f-1],a=t[(d+1)%f];else{if(0===d||d===f-1){l.push(H(t[d]));continue}o=t[d-1],a=t[d+1]}Y(u,a,o),Q(u,u,e);var g=ee(p,o),m=ee(p,a),v=g+m;0!==v&&(g/=v,m/=v),Q(h,u,-g),Q(c,u,m);var y=U([],p,h),x=U([],p,c);n&&(se(y,y,r),re(y,y,s),se(x,x,r),re(x,x,s)),l.push(y),l.push(x)}return i&&l.push(l.shift()),l},WT=oa.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){da(t,e,!0)}}),HT=oa.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){da(t,e,!1)}}),ZT=Math.round,UT={},XT=oa.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i,n,o,a;this.subPixelOptimize?(pa(UT,e,this.style),i=UT.x,n=UT.y,o=UT.width,a=UT.height,UT.r=e.r,e=UT):(i=e.x,n=e.y,o=e.width,a=e.height),e.r?ln(t,e):t.rect(i,n,o,a),t.closePath()}}),YT={},jT=oa.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i,n,o,a;this.subPixelOptimize?(fa(YT,e,this.style),i=YT.x1,n=YT.y1,o=YT.x2,a=YT.y2):(i=e.x1,n=e.y1,o=e.x2,a=e.y2);var r=e.percent;0!==r&&(t.moveTo(i,n),1>r&&(o=i*(1-r)+o*r,a=n*(1-r)+a*r),t.lineTo(o,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}}),qT=[],KT=oa.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,o=e.x2,a=e.y2,r=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(i,n),null==l||null==u?(1>h&&(Ro(i,r,o,h,qT),r=qT[1],o=qT[2],Ro(n,s,a,h,qT),s=qT[1],a=qT[2]),t.quadraticCurveTo(r,s,o,a)):(1>h&&(ko(i,r,l,o,h,qT),r=qT[1],l=qT[2],o=qT[3],ko(n,s,u,a,h,qT),s=qT[1],u=qT[2],a=qT[3]),t.bezierCurveTo(r,s,l,u,o,a)))},pointAt:function(t){return ma(this.shape,t,!1)},tangentAt:function(t){var e=ma(this.shape,t,!0);return te(e,e)}}),$T=oa.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,o=Math.max(e.r,0),a=e.startAngle,r=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*o+i,u*o+n),t.arc(i,n,o,a,r,!s)}}),JT=oa.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i"'])/g,kA={"&":"&","<":"<",">":">",'"':""","'":"'"},PA=["a","b","c","d","e","f","g"],OA=function(t,e){return"{"+t+(null==e?"":e)+"}"},EA=$i,NA=(Object.freeze||Object)({addCommas:Gr,toCamelCase:Fr,normalizeCssArray:CA,encodeHTML:Wr,formatTpl:Hr,formatTplSimple:Zr,getTooltipMarker:Ur,formatTime:Yr,capitalFirst:jr,truncateText:EA,getTextBoundingRect:qr,getTextRect:Kr,windowOpen:$r}),zA=f,RA=["left","right","top","bottom","width","height"],BA=[["width","left","right"],["height","top","bottom"]],VA=Jr,GA=(x(Jr,"vertical"),x(Jr,"horizontal"),{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")}}}),FA=ho(),WA=mr.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){mr.call(this,t,e,i,n),this.uid=xr("ec_cpt_model")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?os(t):{},a=e.getTheme();o(t,a.get(this.mainType)),o(t,this.getDefaultOption()),i&&ns(t,n,i)},mergeOption:function(t){o(this.option,t,!0);var e=this.layoutMode;e&&ns(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){var t=FA(this);if(!t.defaultOption){for(var e=[],i=this.constructor;i;){var n=i.prototype.defaultOption;n&&e.push(n),i=i.superClass}for(var a={},r=e.length-1;r>=0;r--)a=o(a,e[r],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Mo(WA,{registerWhenExtend:!0}),_r(WA),wr(WA,rs),c(WA,GA);var HA="";"undefined"!=typeof navigator&&(HA=navigator.platform||"");var ZA={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:HA.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},UA=ho(),XA={clearColorPalette:function(){UA(this).colorIdx=0,UA(this).colorNameMap={}},getColorFromPalette:function(t,e,i){e=e||this;var n=UA(e),o=n.colorIdx||0,a=n.colorNameMap=n.colorNameMap||{};if(a.hasOwnProperty(t))return a[t];var r=to(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?ss(s,i):r;if(l=l||r,l&&l.length){var u=l[o];return t&&(a[t]=u),n.colorIdx=(o+1)%l.length,u}}},YA="original",jA="arrayRows",qA="objectRows",KA="keyedColumns",$A="unknown",JA="typedArray",QA="column",tD="row";ls.seriesDataToSource=function(t){return new ls({data:t,sourceFormat:I(t)?JA:YA,fromDataset:!1})},wo(ls);var eD={Must:1,Might:2,Not:3},iD=ho(),nD="\x00_ec_inner",oD=mr.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new mr(i),this._optionManager=n},setOption:function(t,e){O(!(nD in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):Ms.call(this,n),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(this.mergeOption(o),e=!0)}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this,this._api);a.length&&f(a,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,n){var o=to(t[e]),s=oo(a.get(e),o);ao(s),f(s,function(t){var i=t.option;S(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Ts(e,i,t.exist))});var l=Is(a,n);i[e]=[],a.set(e,[]),f(s,function(t,n){var o=t.exist,s=t.option;if(O(S(s)||o,"Empty component definition"),s){var u=WA.getClass(e,t.keyInfo.subType,!0);if(o&&o.constructor===u)o.name=t.keyInfo.name,o.mergeOption(s,this),o.optionUpdated(s,!1);else{var h=r({dependentModels:l,componentIndex:n},t.keyInfo);o=new u(s,this,this,h),r(o,h),o.init(s,this,this,h),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);a.get(e)[n]=o,i[e][n]=o.option},this),"series"===e&&As(this,a.get("series"))}var i=this.option,a=this._componentsMap,s=[];cs(this),f(t,function(t,e){null!=t&&(WA.hasClass(e)?e&&s.push(e):i[e]=null==i[e]?n(t):o(i[e],t,!0))}),WA.topologicalTravel(s,WA.getAllClassMainTypes(),e,this),this._seriesIndicesMap=B(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=n(this.option);return f(t,function(e,i){if(WA.hasClass(i)){for(var e=to(e),n=e.length-1;n>=0;n--)so(e[n])&&e.splice(n,1);t[i]=e}}),delete t[nD],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,o=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];var r;if(null!=i)_(i)||(i=[i]),r=m(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var s=_(n);r=m(a,function(t){return s&&u(n,t.id)>=0||!s&&t.id===n})}else if(null!=o){var l=_(o);r=m(a,function(t){return l&&u(o,t.name)>=0||!l&&t.name===o})}else r=a.slice();return Ds(r,t)},findComponents:function(t){function e(t){var e=o+"Index",i=o+"Id",n=o+"Name";return!t||null==t[e]&&null==t[i]&&null==t[n]?null:{mainType:o,index:t[e],id:t[i],name:t[n]}}function i(e){return t.filter?m(e,t.filter):e}var n=t.query,o=t.mainType,a=e(n),r=a?this.queryComponents(a):this._componentsMap.get(o);return i(Ds(r,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each(function(t,n){f(t,function(t,o){e.call(i,n,t,o)})});else if(b(t))f(n.get(t),e,i);else if(S(t)){var o=this.findComponents(t);f(o,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return m(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return m(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){Cs(this),f(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){Cs(this),f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&e.call(i,o,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return Cs(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Cs(this);var i=m(this._componentsMap.get("series"),t,e);As(this,i)},restoreData:function(t){var e=this._componentsMap;As(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),WA.topologicalTravel(i,WA.getAllClassMainTypes(),function(i){f(e.get(i),function(e){("series"!==i||!bs(e,t))&&e.restoreData()})})}});c(oD,XA);var aD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],rD={};ks.prototype={constructor:ks,create:function(t,e){var i=[];f(rD,function(n){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},update:function(t,e){f(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},ks.register=function(t,e){rD[t]=e},ks.get=function(t){return rD[t]};var sD=f,lD=n,uD=p,hD=o,cD=/^(min|max)?(.+)$/;Ps.prototype={constructor:Ps,setOption:function(t,e){t&&f(to(t.series),function(t){t&&t.data&&I(t.data)&&N(t.data)}),t=lD(t);var i=this._optionBackup,n=Os.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(Rs(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=uD(e.timelineOptions,lD),this._mediaList=uD(e.mediaList,lD),this._mediaDefault=lD(e.mediaDefault),this._currentMediaIndices=[],lD(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=lD(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,o=[],a=[];if(!i.length&&!n)return a;for(var r=0,s=i.length;s>r;r++)Es(i[r].query,t,e)&&o.push(r);return!o.length&&n&&(o=[-1]),o.length&&!zs(o,this._currentMediaIndices)&&(a=uD(o,function(t){return lD(-1===t?n.option:i[t].option)})),this._currentMediaIndices=o,a}};var dD=f,fD=S,pD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],gD=function(t,e){dD(Zs(t.series),function(t){fD(t)&&Hs(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),dD(i,function(e){dD(Zs(t[e]),function(t){t&&(Fs(t,"axisLabel"),Fs(t.axisPointer,"label"))})}),dD(Zs(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Fs(e,"axisLabel"),Fs(e&&e.axisPointer,"label")}),dD(Zs(t.calendar),function(t){Vs(t,"itemStyle"),Fs(t,"dayLabel"),Fs(t,"monthLabel"),Fs(t,"yearLabel")}),dD(Zs(t.radar),function(t){Fs(t,"name")}),dD(Zs(t.geo),function(t){fD(t)&&(Ws(t),dD(Zs(t.regions),function(t){Ws(t)}))}),dD(Zs(t.timeline),function(t){Ws(t),Vs(t,"label"),Vs(t,"itemStyle"),Vs(t,"controlStyle",!0);var e=t.data;_(e)&&f(e,function(t){S(t)&&(Vs(t,"label"),Vs(t,"itemStyle"))})}),dD(Zs(t.toolbox),function(t){Vs(t,"iconStyle"),dD(t.feature,function(t){Vs(t,"iconStyle")})}),Fs(Us(t.axisPointer),"label"),Fs(Us(t.tooltip).axisPointer,"label")},mD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yD=function(t,e){gD(t,e),t.series=to(t.series),f(t.series,function(t){if(S(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var i=Xs(t,"pointer.color");null!=i&&Ys(t,"itemStyle.color",i)}js(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(vD,function(e){var i=t[e];i&&(_(i)||(i=[i]),f(i,function(t){js(t)}))})},xD=function(t){var e=B();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),o=t.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;n.length&&o.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}}),e.each(qs)},_D=Ks.prototype;_D.pure=!1,_D.persistent=!0,_D.getSource=function(){return this._source};var wD={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:Qs},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var r=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(r!==l||s!==u)&&(a="reset");var h;(this._dirty||"reset"===a)&&(this._dirty=!1,h=ll(this,n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(i?(eS&&O(null!=i._outputDueEnd),this._dueEnd=i._outputDueEnd):(eS&&O(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||f>d)){var p=this._progress;if(_(p))for(var g=0;g=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var AD=function(){function t(){return i>n?n++:null}function e(){var t=n%r*o+Math.ceil(n/r),e=n>=i?null:a>t?t:n;return n++,e}var i,n,o,a,r,s={reset:function(l,u,h,c){n=l,i=u,o=h,a=c,r=Math.ceil(a/o),s.next=o>1&&a>0?e:t}};return s}();TD.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},TD.unfinished=function(){return this._progress&&this._dueIndex":"",m=p+s.join(p||", ");return{renderMode:n,content:m,style:u}}function a(t){return{renderMode:n,content:Wr(Gr(t)),style:u}}var r=this;n=n||"html";var s="html"===n?"
          ":"\n",l="richText"===n,u={},h=0,c=this.getData(),d=c.mapDimension("defaultedTooltip",!0),p=d.length,m=this.getRawValue(t),v=_(m),y=c.getItemVisual(t,"color");S(y)&&y.colorStops&&(y=(y.colorStops[0]||{}).color),y=y||"transparent";var x=p>1||v&&!p?o(m):a(p?nl(c,t,d[0]):v?m[0]:m),w=x.content,b=r.seriesIndex+"at"+h,M=Ur({color:y,type:"item",renderMode:n,markerId:b});u[b]=y,++h;var I=c.getName(t),T=this.name;ro(this)||(T=""),T=T?Wr(T)+(e?": ":s):"";var A="string"==typeof M?M:M.content,D=e?A+T+w:T+A+(I?Wr(I)+": "+w:w);return{html:D,markers:u}},isAnimationEnabled:function(){if(aS.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,o=XA.getColorFromPalette.call(this,t,e,i);return o||(o=n.getColorFromPalette(t,e,i)),o},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});c(CD,ID),c(CD,XA);var LD=function(){this.group=new xM,this.uid=xr("viewComponent")};LD.prototype={constructor:LD,init:function(){},render:function(){},dispose:function(){},filterForExposedEvent:null};var kD=LD.prototype;kD.updateView=kD.updateLayout=kD.updateVisual=function(){},_o(LD),Mo(LD,{registerWhenExtend:!0}); +var PD=function(){var t=ho();return function(e){var i=t(e),n=e.pipelineContext,o=i.large,a=i.progressiveRender,r=i.large=n&&n.large,s=i.progressiveRender=n&&n.progressiveRender;return!!(o^r||a^s)&&"reset"}},OD=ho(),ED=PD();vl.prototype={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,n){xl(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){xl(t.getData(),n,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var ND=vl.prototype;ND.updateView=ND.updateLayout=ND.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},_o(vl,["dispose"]),Mo(vl,{registerWhenExtend:!0}),vl.markUpdateMethod=function(t,e){OD(t).updateMethod=e};var zD={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},RD="\x00__throttleOriginMethod",BD="\x00__throttleRate",VD="\x00__throttleType",GD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(n),a=!w(o)||o instanceof QT?null:o;(!o||a)&&(o=t.getColorFromPalette(t.name,null,e.getSeriesCount())),i.setVisual("color",o);var r=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),s=t.get(r);if(i.setVisual("borderColor",s),!e.isSeriesFiltered(t)){a&&i.each(function(e){i.setItemVisual(e,"color",a(t.getDataParams(e)))});var l=function(t,e){var i=t.getItemModel(e),o=i.get(n,!0),a=i.get(r,!0);null!=o&&t.setItemVisual(e,"color",o),null!=a&&t.setItemVisual(e,"borderColor",a)};return{dataEach:i.hasItemOption?l:null}}}},FD={legend:{selector:{all:"全选",inverse:"反选"}},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:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},WD=function(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return f(e,function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),i}function n(t){var e=r.get(t);if(null==e){for(var i=t.split("."),n=FD.aria,o=0;os)){var d=o();l=d?i(n("general.withTitle"),{title:d}):n("general.withoutTitle");var p=[],g=s>1?"series.multiple.prefix":"series.single.prefix";l+=i(n(g),{seriesCount:s}),e.eachSeries(function(t,e){if(c>e){var o,r=t.get("name"),l="series."+(s>1?"multiple":"single")+".";o=n(r?l+"withName":l+"withoutName"),o=i(o,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:a(t.subType)});var h=t.getData();window.data=h,o+=h.count()>u?i(n("data.partialData"),{displayCnt:u}):n("data.allData");for(var d=[],f=0;ff){var g=h.getName(f),m=nl(h,f);d.push(i(n(g?"data.withName":"data.withoutName"),{name:g,value:m}))}o+=d.join(n("data.separator.middle"))+n("data.separator.end"),p.push(o)}}),l+=p.join(n("series.multiple.separator.middle"))+n("series.multiple.separator.end"),t.setAttribute("aria-label",l)}}},HD=Math.PI,ZD=function(t,e){e=e||{},s(e,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new xM,n=new XT({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var o=e.fontSize+" sans-serif",a=new XT({style:{fill:"none",text:e.text,font:o,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(i.add(a),e.showSpinner){var r=new $T({shape:{startAngle:-HD/2,endAngle:-HD/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});r.animateShape(!0).when(1e3,{endAngle:3*HD/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*HD/2}).delay(300).start("circularInOut"),i.add(r)}return i.resize=function(){var i=Zi(e.text,o),s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner?0:i/2),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},UD=Il.prototype;UD.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},UD.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,o=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,a=o?i.step:null,r=n&&n.modDataCount,s=null!=r?Math.ceil(r/a):null;return{step:a,modBy:s,modDataCount:r}}},UD.getPipeline=function(t){return this._pipelineMap.get(t)},UD.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),o=n.count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&o>=i.threshold,r=t.get("large")&&o>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?o:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:s,large:r}},UD.restorePipelines=function(t){var e=this,i=e._pipelineMap=B();t.eachSeries(function(t){var n=t.getProgressive(),o=t.uid;i.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),Rl(e,t,t.dataTask)})},UD.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;f(this._allHandlers,function(n){var o=t.get(n.uid)||t.set(n.uid,[]);n.reset&&Al(this,n,o,e,i),n.overallReset&&Dl(this,n,o,e,i)},this)},UD.prepareView=function(t,e,i,n){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=i,a.api=n,o.__block=!t.incrementalPrepareRender,Rl(this,e,o)},UD.performDataProcessorTasks=function(t,e){Tl(this,this._dataProcessorHandlers,t,e,{block:!0})},UD.performVisualTasks=function(t,e,i){Tl(this,this._visualHandlers,t,e,i)},UD.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},UD.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var XD=UD.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},YD=Nl(0);Il.wrapStageHandler=function(t,e){return w(t)&&(t={overallReset:t,seriesType:Bl(t)}),t.uid=xr("stageHandler"),e&&(t.visualType=e),t};var jD,qD={},KD={};Vl(qD,oD),Vl(KD,Ls),qD.eachSeriesByType=qD.eachRawSeriesByType=function(t){jD=t},qD.eachComponent=function(t){"series"===t.mainType&&t.subType&&(jD=t.subType)};var $D=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],JD={color:$D,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$D]},QD="#eee",tC=function(){return{axisLine:{lineStyle:{color:QD}},axisTick:{lineStyle:{color:QD}},axisLabel:{textStyle:{color:QD}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:QD}}}},eC=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],iC={color:eC,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:QD},crossStyle:{color:QD},label:{color:"#000"}}},legend:{textStyle:{color:QD}},textStyle:{color:QD},title:{textStyle:{color:QD}},toolbox:{iconStyle:{normal:{borderColor:QD}}},dataZoom:{textStyle:{color:QD}},visualMap:{textStyle:{color:QD}},timeline:{lineStyle:{color:QD},itemStyle:{normal:{color:eC[1]}},label:{normal:{textStyle:{color:QD}}},controlStyle:{normal:{color:QD,borderColor:QD}}},timeAxis:tC(),logAxis:tC(),valueAxis:tC(),categoryAxis:tC(),line:{symbol:"circle"},graph:{color:eC},gauge:{title:{textStyle:{color:QD}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};iC.categoryAxis.splitLine.show=!1,WA.extend({type:"dataset",defaultOption:{seriesLayoutBy:QA,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){us(this)}}),LD.extend({type:"dataset"});var nC=oa.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,o=e.cy,a=e.rx,r=e.ry,s=a*i,l=r*i;t.moveTo(n-a,o),t.bezierCurveTo(n-a,o-l,n-s,o-r,n,o-r),t.bezierCurveTo(n+s,o-r,n+a,o-l,n+a,o),t.bezierCurveTo(n+a,o+l,n+s,o+r,n,o+r),t.bezierCurveTo(n-s,o+r,n-a,o+l,n-a,o),t.closePath()}}),oC=/[\s,]+/;Fl.prototype.parse=function(t,e){e=e||{};var i=Gl(t);if(!i)throw new Error("Illegal svg");var n=new xM;this._root=n;var o=i.getAttribute("viewBox")||"",a=parseFloat(i.getAttribute("width")||e.width),r=parseFloat(i.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(r)&&(r=null),Ul(i,n,null,!0);for(var s=i.firstChild;s;)this._parseNode(s,n),s=s.nextSibling;var l,u;if(o){var h=E(o).split(oC);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=r&&(u=ql(l,a,r),!e.ignoreViewBox)){var c=n;n=new xM,n.add(c),c.scale=u.scale.slice(),c.position=u.position.slice()}return e.ignoreRootClip||null==a||null==r||n.setClipPath(new XT({shape:{x:0,y:0,width:a,height:r}})),{root:n,width:a,height:r,viewBoxRect:l,viewBoxTransform:u}},Fl.prototype._parseNode=function(t,e){var i=t.nodeName.toLowerCase();"defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0);var n;if(this._isDefine){var o=rC[i];if(o){var a=o.call(this,t),r=t.getAttribute("id");r&&(this._defs[r]=a)}}else{var o=aC[i];o&&(n=o.call(this,t,e),e.add(n))}for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},Fl.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var o=new ET({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});Hl(e,o),Ul(t,o,this._defs);var a=o.style.fontSize;a&&9>a&&(o.style.fontSize=9,o.scale=o.scale||[1,1],o.scale[0]*=a/9,o.scale[1]*=a/9);var r=o.getBoundingRect();return this._textX+=r.width,e.add(o),o};var aC={g:function(t,e){var i=new xM;return Hl(e,i),Ul(t,i,this._defs),i},rect:function(t,e){var i=new XT;return Hl(e,i),Ul(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new NT;return Hl(e,i),Ul(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new jT;return Hl(e,i),Ul(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new nC;return Hl(e,i),Ul(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=Zl(i));var n=new WT({shape:{points:i||[]}});return Hl(e,n),Ul(t,n,this._defs),n},polyline:function(t,e){var i=new oa;Hl(e,i),Ul(t,i,this._defs);var n=t.getAttribute("points");n&&(n=Zl(n));var o=new HT({shape:{points:n||[]}});return o},image:function(t,e){var i=new Dn;return Hl(e,i),Ul(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,n=t.getAttribute("y")||0,o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(n)+parseFloat(a);var r=new xM;return Hl(e,r),Ul(t,r,this._defs),r},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0,r=new xM;return Hl(e,r),Ul(t,r,this._defs),this._textX+=o,this._textY+=a,r},path:function(t,e){var i=t.getAttribute("d")||"",n=la(i);return Hl(e,n),Ul(t,n,this._defs),n}},rC={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),o=parseInt(t.getAttribute("y2")||0,10),a=new tA(e,i,n,o);return Wl(t,a),a},radialgradient:function(){}},sC={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"},lC=/url\(\s*#(.*?)\)/,uC=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,hC=/([^\s:;]+)\s*:\s*([^:;]+)/g,cC=B(),dC={registerMap:function(t,e,i){var n;return _(e)?n=e:e.svg?n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),n=[{type:"geoJSON",source:e,specialAreas:i}]),f(n,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var i=fC[e];eS&&O(i,"Illegal map type: "+e),i(t)}),cC.set(t,n)},retrieveMap:function(t){return cC.get(t)}},fC={geoJSON:function(t){var e=t.source;t.geoJSON=b(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Gl(t.source)}},pC=O,gC=f,mC=w,vC=S,yC=WA.parseClassType,xC="4.9.0",_C={zrender:"4.3.2"},wC=1,bC=1e3,SC=800,MC=900,IC=5e3,TC=1e3,AC=1100,DC=2e3,CC=3e3,LC=3500,kC=4e3,PC=5e3,OC={PROCESSOR:{FILTER:bC,SERIES_FILTER:SC,STATISTIC:IC},VISUAL:{LAYOUT:TC,PROGRESSIVE_LAYOUT:AC,GLOBAL:DC,CHART:CC,POST_CHART_LAYOUT:LC,COMPONENT:kC,BRUSH:PC}},EC="__flagInMainProcess",NC="__optionUpdated",zC=/^[a-zA-Z0-9_]+$/;Jl.prototype.on=$l("on",!0),Jl.prototype.off=$l("off",!0),Jl.prototype.one=$l("one",!0),c(Jl,AS);var RC=Ql.prototype;RC._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[NC]){var e=this[NC].silent;this[EC]=!0,eu(this),BC.update.call(this),this[EC]=!1,this[NC]=!1,au.call(this,e),ru.call(this,e)}else if(t.unfinished){var i=wC,n=this._model,o=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),nu(this,n),t.performVisualTasks(n),du(this,this._model,o,"remain"),i-=+new Date-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},RC.getDom=function(){return this._dom},RC.getZr=function(){return this._zr},RC.setOption=function(t,e,i){if(eS&&pC(!this[EC],"`setOption` should not be called during main process."),this._disposed)return void pu(this.id);var n;if(vC(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[EC]=!0,!this._model||e){var o=new Ps(this._api),a=this._theme,r=this._model=new oD;r.scheduler=this._scheduler,r.init(null,null,a,o)}this._model.setOption(t,HC),i?(this[NC]={silent:n},this[EC]=!1):(eu(this),BC.update.call(this),this._zr.flush(),this[NC]=!1,this[EC]=!1,au.call(this,n),ru.call(this,n))},RC.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},RC.getModel=function(){return this._model},RC.getOption=function(){return this._model&&this._model.getOption()},RC.getWidth=function(){return this._zr.getWidth()},RC.getHeight=function(){return this._zr.getHeight()},RC.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},RC.getRenderedCanvas=function(t){if(aS.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},RC.getSvgDataURL=function(){if(aS.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return f(e,function(t){t.stopAnimation(!0)}),t.painter.toDataURL()}},RC.getDataURL=function(t){if(this._disposed)return void pu(this.id);t=t||{};var e=t.excludeComponents,i=this._model,n=[],o=this;gC(e,function(t){i.eachComponent({mainType:t},function(t){var e=o._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return gC(n,function(t){t.group.ignore=!1}),a},RC.getConnectedDataURL=function(t){if(this._disposed)return void pu(this.id);if(aS.canvasSupported){var e="svg"===t.type,i=this.group,o=Math.min,a=Math.max,r=1/0;if(qC[i]){var s=r,l=r,u=-r,h=-r,c=[],d=t&&t.pixelRatio||1;f(jC,function(r){if(r.group===i){var d=e?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(n(t)),f=r.getDom().getBoundingClientRect();s=o(f.left,s),l=o(f.top,l),u=a(f.right,u),h=a(f.bottom,h),c.push({dom:d,left:f.left,top:f.top})}}),s*=d,l*=d,u*=d,h*=d;var p=u-s,g=h-l,m=mS(),v=qn(m,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:g}),e){var y="";return gC(c,function(t){var e=t.left-s,i=t.top-l;y+=''+t.dom+""}),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new XT({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),gC(c,function(t){var e=new Dn({style:{x:t.left*d-s,y:t.top*d-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},RC.convertToPixel=x(tu,"convertToPixel"),RC.convertFromPixel=x(tu,"convertFromPixel"),RC.containPixel=function(t,e){if(this._disposed)return void pu(this.id);var i,n=this._model;return t=co(n,t),f(t,function(t,n){n.indexOf("Models")>=0&&f(t,function(t){var o=t.coordinateSystem;if(o&&o.containPoint)i|=!!o.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint?i|=a.containPoint(e,t):eS&&console.warn(n+": "+(a?"The found component do not support containPoint.":"No view mapping to the found component."))}else eS&&console.warn(n+": containPoint is not supported")},this)},this),!!i},RC.getVisual=function(t,e){var i=this._model;t=co(i,t,{defaultMainType:"series"});var n=t.seriesModel;eS&&(n||console.warn("There is no specified seires model"));var o=n.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?o.indexOfRawIndex(t.dataIndex):null;return null!=a?o.getItemVisual(a,e):o.getVisual(e)},RC.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},RC.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var BC={prepareAndUpdate:function(t){eu(this),BC.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,o=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),o.create(e,i),a.performDataProcessorTasks(e,t),nu(this,e),o.update(e,i),uu(e),a.performVisualTasks(e,t),hu(this,e,i,t);var r=e.get("backgroundColor")||"transparent";if(aS.canvasSupported)n.setBackgroundColor(r);else{var s=ti(r);r=ui(s,"rgb"),0===s[3]&&(r="transparent")}fu(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var o=[];e.eachComponent(function(a,r){var s=i.getViewOfComponentModel(r);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(r,e,n,t);l&&l.update&&o.push(s)}else o.push(s)});var a=B();e.eachSeries(function(o){var r=i._chartsMap[o.__viewId];if(r.updateTransform){var s=r.updateTransform(o,e,n,t);s&&s.update&&a.set(o.uid,1)}else a.set(o.uid,1)}),uu(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:a}),du(i,e,n,t,a),fu(e,this._api)}},updateView:function(t){var e=this._model;e&&(vl.markUpdateMethod(t,"updateView"),uu(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),hu(this,this._model,this._api,t),fu(e,this._api))},updateVisual:function(t){BC.update.call(this,t)},updateLayout:function(t){BC.update.call(this,t)}};RC.resize=function(t){if(eS&&pC(!this[EC],"`resize` should not be called during main process."),this._disposed)return void pu(this.id);this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[EC]=!0,i&&eu(this),BC.update.call(this),this[EC]=!1,au.call(this,n),ru.call(this,n)}},RC.showLoading=function(t,e){if(this._disposed)return void pu(this.id);if(vC(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),!YC[t])return void(eS&&console.warn("Loading effects "+t+" not exists."));var i=YC[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},RC.hideLoading=function(){return this._disposed?void pu(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),void(this._loadingFX=null))},RC.makeActionFromEvent=function(t){var e=r({},t);return e.type=FC[t.type],e},RC.dispatchAction=function(t,e){if(this._disposed)return void pu(this.id);if(vC(e)||(e={silent:!!e}),GC[t.type]&&this._model){if(this[EC])return void this._pendingActions.push(t);ou.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&aS.browser.weChat&&this._throttledZrFlush(),au.call(this,e.silent),ru.call(this,e.silent)}},RC.appendData=function(t){if(this._disposed)return void pu(this.id);var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);eS&&pC(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0},RC.on=$l("on",!1),RC.off=$l("off",!1),RC.one=$l("one",!1);var VC=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];RC._initEvents=function(){gC(VC,function(t){var e=function(e){var i,n=this.getModel(),o=e.target,a="globalout"===t;if(a)i={};else if(o&&null!=o.dataIndex){var s=o.dataModel||n.getSeriesByIndex(o.seriesIndex);i=s&&s.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(i=r({},o.eventData));if(i){var l=i.componentType,u=i.componentIndex;("markLine"===l||"markPoint"===l||"markArea"===l)&&(l="series",u=i.seriesIndex);var h=l&&null!=u&&n.getComponent(l,u),c=h&&this["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];eS&&(a||h&&c||console.warn("model or view can not be found by params")),i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:i,model:h,view:c},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),gC(FC,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},RC.isDisposed=function(){return this._disposed},RC.clear=function(){return this._disposed?void pu(this.id):void this.setOption({series:[]},!0)},RC.dispose=function(){if(this._disposed)return void pu(this.id);this._disposed=!0,po(this.getDom(),JC,"");var t=this._api,e=this._model;gC(this._componentsViews,function(i){i.dispose(e,t)}),gC(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete jC[this.id]},c(Ql,AS),xu.prototype={constructor:xu,normalizeQuery:function(t){var e={},i={},n={};if(b(t)){var o=yC(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],r={name:1,dataIndex:1,dataType:1};f(t,function(t,o){for(var s=!1,l=0;l0&&h===o.length-u.length){var c=o.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}r.hasOwnProperty(o)&&(i[o]=t,s=!0),s||(n[o]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n=this.eventInfo;if(!n)return!0;var o=n.targetEl,a=n.packedEvent,r=n.model,s=n.view;if(!r||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return i(l,r,"mainType")&&i(l,r,"subType")&&i(l,r,"index","componentIndex")&&i(l,r,"name")&&i(l,r,"id")&&i(u,a,"name")&&i(u,a,"dataIndex")&&i(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,o,a))},afterTrigger:function(){this.eventInfo=null}};var GC={},FC={},WC=[],HC=[],ZC=[],UC=[],XC={},YC={},jC={},qC={},KC=new Date-0,$C=new Date-0,JC="_echarts_instance_",QC=Su;Nu(DC,GD),Du(yD),Cu(MC,xD),Ru("default",ZD),ku({type:"highlight",event:"highlight",update:"highlight"},G),ku({type:"downplay",event:"downplay",update:"downplay"},G),Au("light",JD),Au("dark",iC);var tL={};Xu.prototype={constructor:Xu,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,i=this._new,n={},o={},a=[],r=[];for(Yu(e,n,a,"_oldKeyGetter",this),Yu(i,o,r,"_newKeyGetter",this),t=0;th;h++)this._add&&this._add(l[h]);else this._add&&this._add(l)}}}};var eL=B(["tooltip","label","itemName","itemId","seriesName"]),iL=S,nL="undefined",oL=-1,aL="e\x00\x00",rL={"float":typeof Float64Array===nL?Array:Float64Array,"int":typeof Int32Array===nL?Array:Int32Array,ordinal:Array,number:Array,time:Array},sL=typeof Uint32Array===nL?Array:Uint32Array,lL=typeof Int32Array===nL?Array:Int32Array,uL=typeof Uint16Array===nL?Array:Uint16Array,hL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],cL=["_extent","_approximateExtent","_rawExtent"],dL=function(t,e){t=t||["x","y"];for(var i={},n=[],o={},a=0;ah;h++){var c=o[h];r[c]||(r[c]=dh()),n[c]||(n[c]=[]),ih(n,this._dimensionInfos[c],i,u,l),this._chunkCount=n[c].length}for(var d=new Array(a),f=s;l>f;f++){for(var p=f-s,g=Math.floor(f/i),m=f%i,v=0;a>v;v++){var c=o[v],y=this._dimValueGetterArrayRows(t[p]||d,c,p,v);n[c][g][m]=y;var x=r[c];yx[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},nh(this)},fL._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,o=this._rawData,a=this._storage,r=this.dimensions,s=r.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;s>p;p++){var g=r[p];c[g]||(c[g]=dh());var m=l[g];0===m.otherDims.itemName&&(i=this._nameDimIdx=p),0===m.otherDims.itemId&&(this._idDimIdx=p),a[g]||(a[g]=[]),ih(a,m,n,f,e),this._chunkCount=a[g].length}for(var v=new Array(s),y=t;e>y;y++){v=o.getItem(y,v);for(var x=Math.floor(y/n),_=y%n,w=0;s>w;w++){var g=r[w],b=a[g][x],S=this._dimValueGetter(v,g,y,w);b[_]=S;var M=c[g];SM[1]&&(M[1]=S)}if(!o.pure){var I=u[y];if(v&&null==I)if(null!=v.name)u[y]=I=v.name;else if(null!=i){var T=r[i],A=a[T][x];if(A){I=A[_];var D=l[T].ordinalMeta;D&&D.categories.length&&(I=D.categories[I])}}var C=null==v?null:v.id;null==C&&null!=I&&(d[I]=d[I]||0,C=I,d[I]>0&&(C+="__ec__"+d[I]),d[I]++),null!=C&&(h[y]=C)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=e,this._extent={},nh(this)}},fL.count=function(){return this._count},fL.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var o=0;n>o;o++)t[o]=e[o]}else t=new i(e.buffer,0,n)}else for(var i=Qu(this),t=new i(this.count()),o=0;o=0&&e=0&&en;n++)i.push(this.get(t[n],e));return i},fL.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=0,n=e.length;n>i;i++)if(isNaN(this.get(e[i],t)))return!1; +return!0},fL.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],i=dh();if(!e)return i;var n,o=this.count(),a=!this._indices;if(a)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var r=n[0],s=n[1],l=0;o>l;l++){var u=this._getFast(t,this.getRawIndex(l));r>u&&(r=u),u>s&&(s=u)}return n=[r,s],this._extent[t]=n,n},fL.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},fL.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},fL.getCalculationInfo=function(t){return this._calculationInfo[t]},fL.setCalculationInfo=function(t,e){iL(t)?r(this._calculationInfo,t):this._calculationInfo[t]=e},fL.getSum=function(t){var e=this._storage[t],i=0;if(e)for(var n=0,o=this.count();o>n;n++){var a=this.get(t,n);isNaN(a)||(i+=a)}return i},fL.getMedian=function(t){var e=[];this.each(t,function(t){isNaN(t)||e.push(t)});var i=[].concat(e).sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},fL.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t];if(eS&&!i)throw new Error("Do not supported yet");var n=i[e];return null==n||isNaN(n)?oL:n},fL.indexOfName=function(t){for(var e=0,i=this.count();i>e;e++)if(this.getName(e)===t)return e;return-1},fL.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i=n;){var a=(n+o)/2|0;if(e[a]t))return a;o=a-1}}return-1},fL.indicesOfNearest=function(t,e,i){var n=this._storage,o=n[t],a=[];if(!o)return a;null==i&&(i=1/0);for(var r=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=e-this.get(t,u),d=Math.abs(c);i>=d&&((r>d||d===r&&c>=0&&0>s)&&(r=d,s=c,l=0),c===s&&(a[l++]=u))}return a.length=l,a},fL.getRawIndex=ah,fL.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;ir;r++)s[r]=this.get(t[r],a);s[r]=a,e.apply(i,s)}}},fL.filterSelf=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=p(lh(t),this.getDimension,this),eS&&uh(this,t);for(var o=this.count(),a=Qu(this),r=new a(o),s=[],l=t.length,u=0,h=t[0],c=0;o>c;c++){var d,f=this.getRawIndex(c);if(0===l)d=e.call(i,c);else if(1===l){var g=this._getFast(h,f);d=e.call(i,g,c)}else{for(var m=0;l>m;m++)s[m]=this._getFast(h,f);s[m]=c,d=e.apply(i,s)}d&&(r[u++]=f)}return o>u&&(this._indices=r),this._count=u,this._extent={},this.getRawIndex=this._indices?rh:ah,this}},fL.selectRange=function(t){if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);eS&&uh(this,e);var n=e.length;if(n){var o=this.count(),a=Qu(this),r=new a(o),s=0,l=e[0],u=t[l][0],h=t[l][1],c=!1;if(!this._indices){var d=0;if(1===n){for(var f=this._storage[e[0]],p=0;pv;v++){var y=g[v];(y>=u&&h>=y||isNaN(y))&&(r[s++]=d),d++}c=!0}else if(2===n){for(var f=this._storage[l],x=this._storage[e[1]],_=t[e[1]][0],w=t[e[1]][1],p=0;pv;v++){var y=g[v],S=b[v];(y>=u&&h>=y||isNaN(y))&&(S>=_&&w>=S||isNaN(S))&&(r[s++]=d),d++}c=!0}}if(!c)if(1===n)for(var v=0;o>v;v++){var M=this.getRawIndex(v),y=this._getFast(l,M);(y>=u&&h>=y||isNaN(y))&&(r[s++]=M)}else for(var v=0;o>v;v++){for(var I=!0,M=this.getRawIndex(v),p=0;n>p;p++){var T=e[p],y=this._getFast(i,M);(yt[T][1])&&(I=!1)}I&&(r[s++]=this.getRawIndex(v))}return o>s&&(this._indices=r),this._count=s,this._extent={},this.getRawIndex=this._indices?rh:ah,this}}},fL.mapArray=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var o=[];return this.each(t,function(){o.push(e&&e.apply(this,arguments))},i),o},fL.map=function(t,e,i,n){i=i||n||this,t=p(lh(t),this.getDimension,this),eS&&uh(this,t);var o=hh(this,t);o._indices=this._indices,o.getRawIndex=o._indices?rh:ah;for(var a=o._storage,r=[],s=this._chunkSize,l=t.length,u=this.count(),h=[],c=o._rawExtent,d=0;u>d;d++){for(var f=0;l>f;f++)h[f]=this.get(t[f],d);h[l]=d;var g=e&&e.apply(i,h);if(null!=g){"object"!=typeof g&&(r[0]=g,g=r);for(var m=this.getRawIndex(d),v=Math.floor(m/s),y=m%s,x=0;xb[1]&&(b[1]=w)}}}return o},fL.downSample=function(t,e,i,n){for(var o=hh(this,[t]),a=o._storage,r=[],s=Math.floor(1/e),l=a[t],u=this.count(),h=this._chunkSize,c=o._rawExtent[t],d=new(Qu(this))(u),f=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,r.length=s);for(var g=0;s>g;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/h),y=m%h;r[g]=l[v][y]}var x=i(r),_=this.getRawIndex(Math.min(p+n(r,x)||0,u-1)),w=Math.floor(_/h),b=_%h;l[w][b]=x,xc[1]&&(c[1]=x),d[f++]=_}return o._count=f,o._indices=d,o.getRawIndex=rh,o},fL.getItemModel=function(t){var e=this.hostModel;return new mr(this.getRawDataItem(t),e,e&&e.ecModel)},fL.diff=function(t){var e=this;return new Xu(t?t.getIndices():[],this.getIndices(),function(e){return sh(t,e)},function(t){return sh(e,t)})},fL.getVisual=function(t){var e=this._visual;return e&&e[t]},fL.setVisual=function(t,e){if(iL(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},fL.setLayout=function(t,e){if(iL(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},fL.getLayout=function(t){return this._layout[t]},fL.getItemLayout=function(t){return this._itemLayouts[t]},fL.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?r(this._itemLayouts[t]||{},e):e},fL.clearItemLayouts=function(){this._itemLayouts.length=0},fL.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],o=n&&n[e];return null!=o||i?o:this.getVisual(e)},fL.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},o=this.hasItemVisual;if(this._itemVisuals[t]=n,iL(e))for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a],o[a]=!0);else n[e]=i,o[e]=!0},fL.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var pL=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};fL.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(pL,e)),this._graphicEls[t]=e},fL.getItemGraphicEl=function(t){return this._graphicEls[t]},fL.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},fL.cloneShallow=function(t){if(!t){var e=p(this.dimensions,this.getDimensionInfo,this);t=new dL(e,this.hostModel)}if(t._storage=this._storage,eh(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?rh:ah,t},fL.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(k(arguments)))})},fL.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],fL.CHANGABLE_METHODS=["filterSelf","selectRange"];var gL=function(t,e){return e=e||{},fh(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})},mL={cartesian2d:function(t,e,i,n){var o=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];if(eS){if(!o)throw new Error('xAxis "'+D(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+D(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],i.set("x",o),i.set("y",a),yh(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),yh(a)&&(n.set("y",a),null==e.firstCategoryDimIndex&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var o=t.getReferringComponents("singleAxis")[0];if(eS&&!o)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],i.set("single",o),yh(o)&&(n.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var o=t.getReferringComponents("polar")[0],a=o.findAxisModel("radiusAxis"),r=o.findAxisModel("angleAxis");if(eS){if(!r)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],i.set("radius",a),i.set("angle",r),yh(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),yh(r)&&(n.set("angle",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=a.dimensions.slice();f(a.parallelAxisIndex,function(t,a){var s=o.getComponent("parallelAxis",t),l=r[a];i.set(l,s),yh(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=a)})}};Ih.prototype.parse=function(t){return t},Ih.prototype.getSetting=function(t){return this._setting[t]},Ih.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},Ih.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Ih.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Ih.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},Ih.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Ih.prototype.getExtent=function(){return this._extent.slice()},Ih.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Ih.prototype.isBlank=function(){return this._isBlank},Ih.prototype.setBlank=function(t){this._isBlank=t},Ih.prototype.getLabel=null,_o(Ih),Mo(Ih,{registerWhenExtend:!0}),Th.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&p(i,Dh);return new Th({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})};var vL=Th.prototype;vL.getOrdinal=function(t){return Ah(this).get(t)},vL.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=Ah(this);return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=0/0),e};var yL=Ih.prototype,xL=Ih.extend({type:"ordinal",init:function(t,e){(!t||_(t))&&(t=new Th({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),yL.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return yL.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(yL.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this.isBlank()?void 0:this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:G,niceExtent:G});xL.create=function(){return new xL};var _L=Ir,wL=Ir,bL=Ih.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),bL.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Lh(t)},getTicks:function(t){var e=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,a=[];if(!e)return a;var r=1e4;i[0]r)return[];var l=a.length?a[a.length-1]:n[1];return i[1]>l&&a.push(t?wL(l+e,o):i[1]),a},getMinorTicks:function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),o=1;os;){var c=Ir(r+(s+1)*h);c>n[0]&&co&&(o=-o,n.reverse());var a=Ch(n,t,e,i);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(e[0]=wL(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=wL(Math.ceil(e[1]/o)*o))}});bL.create=function(){return new bL};var SL="__ec_stack_",ML=.5,IL="undefined"!=typeof Float32Array?Float32Array:Array,TL={seriesType:"bar",plan:PD(),reset:function(t){function e(t,e){for(var i,d=t.count,f=new IL(2*d),p=new IL(2*d),g=new IL(d),m=[],v=[],y=0,x=0;null!=(i=t.next());)v[h]=e.get(s,i),v[1-h]=e.get(l,i),m=n.dataToPoint(v,null,m),p[y]=u?o.x+o.width:m[0],f[y++]=m[0],p[y]=u?m[1]:o.y+o.height,f[y++]=m[1],g[x++]=i;e.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:p,barWidth:c,valueAxisStart:Zh(a,r,!1),backgroundStart:u?o.x:o.y,valueAxisHorizontal:u})}if(Wh(t)&&Hh(t)){var i=t.getData(),n=t.coordinateSystem,o=n.grid.getRect(),a=n.getBaseAxis(),r=n.getOtherAxis(a),s=i.mapDimension(r.dim),l=i.mapDimension(a.dim),u=r.isHorizontal(),h=u?0:1,c=Gh(Bh([t]),a,t).width;return c>ML||(c=ML),{progress:e}}}},AL=bL.prototype,DL=Math.ceil,CL=Math.floor,LL=1e3,kL=60*LL,PL=60*kL,OL=24*PL,EL=function(t,e,i,n){for(;n>i;){var o=i+n>>>1;t[o][1]a&&(a=e),null!=i&&a>i&&(a=i);var r=zL.length,s=EL(zL,a,0,r),l=zL[Math.min(s,r-1)],u=l[1];if("year"===l[0]){var h=o/u,c=zr(h/t,!0);u*=c}var d=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,f=[Math.round(DL((n[0]-d)/u)*u+d),Math.round(CL((n[1]-d)/u)*u+d)];Ph(f,n),this._stepLvl=l,this._interval=u,this._niceExtent=f},parse:function(t){return+Or(t)}});f(["contain","normalize"],function(t){NL.prototype[t]=function(e){return AL[t].call(this,this.parse(e))}});var zL=[["hh:mm:ss",LL],["hh:mm:ss",5*LL],["hh:mm:ss",10*LL],["hh:mm:ss",15*LL],["hh:mm:ss",30*LL],["hh:mm\nMM-dd",kL],["hh:mm\nMM-dd",5*kL],["hh:mm\nMM-dd",10*kL],["hh:mm\nMM-dd",15*kL],["hh:mm\nMM-dd",30*kL],["hh:mm\nMM-dd",PL],["hh:mm\nMM-dd",2*PL],["hh:mm\nMM-dd",6*PL],["hh:mm\nMM-dd",12*PL],["MM-dd\nyyyy",OL],["MM-dd\nyyyy",2*OL],["MM-dd\nyyyy",3*OL],["MM-dd\nyyyy",4*OL],["MM-dd\nyyyy",5*OL],["MM-dd\nyyyy",6*OL],["week",7*OL],["MM-dd\nyyyy",10*OL],["week",14*OL],["week",21*OL],["month",31*OL],["week",42*OL],["month",62*OL],["week",70*OL],["quarter",95*OL],["month",31*OL*4],["month",31*OL*5],["half-year",380*OL/2],["month",31*OL*8],["month",31*OL*10],["year",380*OL]];NL.create=function(t){return new NL({useUTC:t.ecModel.get("useUTC")})};var RL=Ih.prototype,BL=bL.prototype,VL=Dr,GL=Ir,FL=Math.floor,WL=Math.ceil,HL=Math.pow,ZL=Math.log,UL=Ih.extend({type:"log",base:10,$constructor:function(){Ih.apply(this,arguments),this._originalScale=new bL},getTicks:function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return p(BL.getTicks.call(this,t),function(t){var o=Ir(HL(this.base,t));return o=t===i[0]&&e.__fixMin?Uh(o,n[0]):o,o=t===i[1]&&e.__fixMax?Uh(o,n[1]):o},this)},getMinorTicks:BL.getMinorTicks,getLabel:BL.getLabel,scale:function(t){return t=RL.scale.call(this,t),HL(this.base,t)},setExtent:function(t,e){var i=this.base;t=ZL(t)/ZL(i),e=ZL(e)/ZL(i),BL.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=RL.getExtent.call(this);e[0]=HL(t,e[0]),e[1]=HL(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=Uh(e[0],n[0])),i.__fixMax&&(e[1]=Uh(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=ZL(t[0])/ZL(e),t[1]=ZL(t[1])/ZL(e),RL.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=Er(i),o=t/i*n;for(.5>=o&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var a=[Ir(WL(e[0]/n)*n),Ir(FL(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){BL.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],function(t){UL.prototype[t]=function(e){return e=ZL(e)/ZL(this.base),RL[t].call(this,e)}}),UL.create=function(){return new UL};var XL={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!A(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!A(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},getCoordSysModel:G,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},YL=ya({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+o,n+a),t.lineTo(i-o,n+a),t.closePath()}}),jL=ya({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+o,n),t.lineTo(i,n+a),t.lineTo(i-o,n),t.closePath()}}),qL=ya({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width/5*3,a=Math.max(o,e.height),r=o/2,s=r*r/(a-r),l=n-a+r+s,u=Math.asin(s/r),h=Math.cos(u)*r,c=Math.sin(u),d=Math.cos(u),f=.6*r,p=.7*r;t.moveTo(i-h,l+s),t.arc(i,l,r,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-h+c*f,l+s+d*f,i-h,l+s),t.closePath()}}),KL=ya({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,o=e.x,a=e.y,r=n/3*2;t.moveTo(o,a),t.lineTo(o+r,a+i),t.lineTo(o,a+i/4*3),t.lineTo(o-r,a+i),t.lineTo(o,a),t.closePath()}}),$L={line:jT,rect:XT,roundRect:XT,square:XT,circle:NT,diamond:jL,pin:qL,arrow:KL,triangle:YL},JL={line:function(t,e,i,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+i,o.y2=e+n/2},rect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n},roundRect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(t,e,i,n,o){var a=Math.min(i,n);o.x=t,o.y=e,o.width=a,o.height=a},circle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.r=Math.min(i,n)/2},diamond:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n},pin:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},arrow:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},triangle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n}},QL={};f($L,function(t,e){QL[e]=new t});var tk=ya({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=Ki(t,e,i),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===e.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var o=QL[n];o||(n="rect",o=QL[n]),JL[n](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,i)}}}),ek={isDimensionStacked:_h,enableDataStack:xh,getStackedDimension:wh},ik=(Object.freeze||Object)({createList:ac,getLayoutRect:ts,dataStack:ek,createScale:rc,mixinAxisModelCommonMethods:sc,completeDimensions:fh,createDimensions:gL,createSymbol:oc}),nk=1e-8;hc.prototype={constructor:hc,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],o=[],a=[],r=this.geometries,s=0;sn;n++)if("polygon"===i[n].type){var a=i[n].exterior,r=i[n].interiors;if(uc(a,t[0],t[1])){for(var s=0;s<(r?r.length:0);s++)if(uc(r[s]))continue t;return!0}}return!1},transformTo:function(t,e,i,n){var o=this.getBoundingRect(),a=o.width/o.height;i?n||(n=i/a):i=a*n;for(var r=new Ti(t,e,i,n),s=o.calculateTransform(r),l=this.geometries,u=0;u0}),function(t){var i=t.properties,n=t.geometry,o=n.coordinates,a=[];"Polygon"===n.type&&a.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===n.type&&f(o,function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var r=new hc(i[e||"name"],a,i.cp);return r.properties=i,r})},ak=ho(),rk=[0,1],sk=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};sk.prototype={constructor:sk,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Cr(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),Ac(i,n.count())),Sr(t,rk,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),Ac(i,n.count()));var o=Sr(t,i,rk,e);return this.scale.scale(o)},pointToData:function(){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=pc(this,e),n=i.ticks,o=p(n,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),a=e.get("alignWithLabel");return Dc(this,o,a,t.clamp),o},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&100>e||(e=5);var i=this.scale.getMinorTicks(e),n=p(i,function(t){return p(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return n},getViewLabels:function(){return fc(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return Sc(this)}};var lk=ok,uk={};f(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){uk[t]=xS[t]});var hk={};f(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){hk[t]=vA[t]});var ck=function(t){this._axes={},this._dimList=[],this.name=t||""};ck.prototype={constructor:ck,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return p(this._dimList,Cc,this)},getAxesByScale:function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},o=0;oe[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},h(dk,sk);var fk={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},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)"]}}},pk={};pk.categoryAxis=o({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fk),pk.valueAxis=o({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},fk),pk.timeAxis=s({scale:!0,min:"dataMin",max:"dataMax"},pk.valueAxis),pk.logAxis=s({scale:!0,logBase:10},pk.valueAxis);var gk=["value","category","time","log"],mk=function(t,e,i,n){f(gk,function(r){e.extend({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,n){var a=this.layoutMode,s=a?os(e):{},l=n.getTheme();o(e,l.get(r+"Axis")),o(e,this.getDefaultOption()),e.type=i(t,e),a&&ns(e,s,a)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Th.createByAxisModel(this))},getCategories:function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:a([{},pk[r+"Axis"],n],!0)})}),WA.registerSubTypeDefaulter(t+"Axis",x(i,t))},vk=WA.extend({type:"cartesian2dAxis",axis:null,init:function(){vk.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){vk.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){vk.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});o(vk.prototype,XL);var yk={offset:0};mk("x",vk,kc,yk),mk("y",vk,kc,yk),WA.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var xk=Oc.prototype;xk.type="grid",xk.axisPointerEnabled=!0,xk.getRect=function(){return this._rect},xk.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),f(i.x,function(t){jh(t.scale,t.model)}),f(i.y,function(t){jh(t.scale,t.model)});var n={};f(i.x,function(t){Ec(i,"y",t,n)}),f(i.y,function(t){Ec(i,"x",t,n)}),this.resize(this.model,e)},xk.resize=function(t,e,i){function n(){f(a,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),zc(t,e?o.x:o.y)})}var o=ts(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;n(),!i&&t.get("containLabel")&&(f(a,function(t){if(!t.model.get("axisLabel.inside")){var e=Qh(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");o[i]-=e[i]+n,"top"===t.position?o.y+=e.height+n:"left"===t.position&&(o.x+=e.width+n)}}}),n())},xk.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},xk.getAxes=function(){return this._axesList.slice()},xk.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}S(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,o=this._coordsList;nt&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});var bk=AI([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Sk={getBarItemStyle:function(t){var e=bk(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},Mk=ya({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=Math.max(e.r0||0,0),a=Math.max(e.r,0),r=.5*(a-o),s=o+r,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u),g=h?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(c*o+i,d*o+n),t.arc(c*s+i,d*s+n,r,-Math.PI+l,l,!h)),t.arc(i,n,a,l,u,!h),t.moveTo(f*a+i,p*a+n),t.arc(f*s+i,p*s+n,r,u-2*Math.PI,u-Math.PI,!h),0!==o&&(t.arc(i,n,o,u,l,h),t.moveTo(c*o+i,p*o+n)),t.closePath()}}),Ik=["itemStyle","barBorderWidth"],Tk=[0,0];r(mr.prototype,Sk),Fu({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"===n||"polar"===n?this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i):eS&&console.warn("Only cartesian2d and polar supported for bar."),this.group},incrementalPrepareRender:function(t){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e,i=this.group,n=t.getData(),o=this._data,a=t.coordinateSystem,r=a.getBaseAxis();"cartesian2d"===a.type?e=r.isHorizontal():"polar"===a.type&&(e="angle"===r.dim);var s=t.isAnimationEnabled()?t:null,l=t.get("clip",!0),u=Uc(a,n);i.removeClipPath();var h=t.get("roundCap",!0),c=t.get("showBackground",!0),d=t.getModel("backgroundStyle"),f=d.get("barBorderRadius")||0,p=[],g=this._backgroundEls||[],m=function(t){var i=kk[a.type](n,t),o=id(a,e,i);return o.useStyle(d.getBarItemStyle()),"cartesian2d"===a.type&&o.setShape("r",f),p[t]=o,o};n.diff(o).add(function(o){var r=n.getItemModel(o),d=kk[a.type](n,o,r);if(c&&m(o),n.hasValue(o)){if(l){var f=Ck[a.type](u,d);if(f)return void i.remove(p)}var p=Lk[a.type](o,d,e,s,!1,h);n.setItemGraphicEl(o,p),i.add(p),qc(p,n,o,r,d,t,e,"polar"===a.type)}}).update(function(r,v){var y=n.getItemModel(r),x=kk[a.type](n,r,y);if(c){var _;0===g.length?_=m(v):(_=g[v],_.useStyle(d.getBarItemStyle()),"cartesian2d"===a.type&&_.setShape("r",f),p[r]=_);var w=kk[a.type](n,r),b=ed(e,w,a);nr(_,{shape:b},s,r)}var S=o.getItemGraphicEl(v);if(!n.hasValue(r))return void i.remove(S);if(l){var M=Ck[a.type](u,x);if(M)return void i.remove(S)}S?nr(S,{shape:x},s,r):S=Lk[a.type](r,x,e,s,!0,h),n.setItemGraphicEl(r,S),i.add(S),qc(S,n,r,y,x,t,e,"polar"===a.type)}).remove(function(t){var e=o.getItemGraphicEl(t);"cartesian2d"===a.type?e&&Xc(t,s,e):e&&Yc(t,s,e)}).execute();var v=this._backgroundGroup||(this._backgroundGroup=new xM);v.removeAll();for(var y=0;yi&&(e.x+=e.width,e.width=-e.width),0>n&&(e.y+=e.height,e.height=-e.height);var o=Ak(e.x,t.x),a=Dk(e.x+e.width,t.x+t.width),r=Ak(e.y,t.y),s=Dk(e.y+e.height,t.y+t.height);e.x=o,e.y=r,e.width=a-o,e.height=s-r;var l=e.width<0||e.height<0;return 0>i&&(e.x+=e.width,e.width=-e.width),0>n&&(e.y+=e.height,e.height=-e.height),l},polar:function(t,e){var i=e.r0<=e.r?1:-1;if(0>i){var n=e.r;e.r=e.r0,e.r0=n}var n=Dk(e.r,t.r),o=Ak(e.r0,t.r0);e.r=n,e.r0=o;var a=0>n-o;if(0>i){var n=e.r;e.r=e.r0,e.r0=n}return a}},Lk={cartesian2d:function(t,e,i,n,o){var a=new XT({shape:r({},e),z2:1});if(a.name="item",n){var s=a.shape,l=i?"height":"width",u={};s[l]=0,u[l]=e[l],vA[o?"updateProps":"initProps"](a,{shape:u},n,t)}return a},polar:function(t,e,i,n,o,a){var r=e.startAngle0?1:-1,r=n.height>0?1:-1;return{x:n.x+a*o/2,y:n.y+r*o/2,width:n.width-a*o,height:n.height-r*o}},polar:function(t,e){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}},Pk=oa.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,o=this.__baseDimIdx,a=0;a=0?i:null},30,!1),Ek=Math.PI,Nk=function(t,e){this.opt=e,this.axisModel=t,s(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new xM;var i=new xM({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};Nk.prototype={constructor:Nk,hasBuilder:function(t){return!!zk[t]},add:function(t){zk[t].call(this)},getGroup:function(){return this.group}};var zk={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,o=[i[0],0],a=[i[1],0];n&&(ae(o,o,n),ae(a,a,n));var s=r({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new jT({anid:"line",subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:a[0],y2:a[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var l=e.get("axisLine.symbol"),u=e.get("axisLine.symbolSize"),h=e.get("axisLine.symbolOffset")||0;if("number"==typeof h&&(h=[h,h]),null!=l){"string"==typeof l&&(l=[l,l]),("string"==typeof u||"number"==typeof u)&&(u=[u,u]);var c=u[0],d=u[1];f([{rotate:t.rotation+Math.PI/2,offset:h[0],r:0},{rotate:t.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((o[0]-a[0])*(o[0]-a[0])+(o[1]-a[1])*(o[1]-a[1]))}],function(e,i){if("none"!==l[i]&&null!=l[i]){var n=oc(l[i],-c/2,-d/2,c,d,s.stroke,!0),a=e.r+e.offset,r=[o[0]+a*Math.cos(t.rotation),o[1]-a*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:r,silent:!0,z2:11}),this.group.add(n)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=ud(this,t,e),n=cd(this,t,e);od(t,n,i),hd(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,i=D(t.axisName,e.get("name"));if(i){var n,o=e.get("nameLocation"),a=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=this.axisModel.axis.getExtent(),h=u[0]>u[1]?-1:1,c=["start"===o?u[0]-h*l:"end"===o?u[1]+h*l:(u[0]+u[1])/2,sd(o)?t.labelOffset+a*l:0],d=e.get("nameRotate");null!=d&&(d=d*Ek/180);var f;sd(o)?n=Bk(t.rotation,null!=d?d:t.rotation,a):(n=nd(t,o,d||0,u),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(n.rotation)),!isFinite(f)&&(f=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,v=D(t.nameTruncateMaxWidth,g.maxWidth,f),y=null!=m&&null!=v?EA(i,v,p,m,{minChar:2,placeholder:g.placeholder}):i,x=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:i,$vars:["name"]};w[_+"Index"]=e.componentIndex;var b=new ET({anid:"name",__fullText:i,__truncatedText:y,position:c,rotation:n.rotation,silent:Vk(e),z2:1,tooltip:x&&x.show?r({content:i,formatter:function(){return i},formatterParams:w},x):null});Ya(b.style,s,{text:y,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:s.get("align")||n.textAlign,textVerticalAlign:s.get("verticalAlign")||n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=Rk(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},Rk=Nk.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},Bk=Nk.innerTextLayout=function(t,e,i){var n,o,a=kr(e-t);return Pr(a)?(o=i>0?"top":"bottom",n="center"):Pr(a-Ek)?(o=i>0?"bottom":"top",n="center"):(o="middle",n=a>0&&Ek>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},Vk=Nk.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},Gk=f,Fk=x,Wk=Vu({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&yd(t),Wk.superApply(this,"render",arguments),Sd(this,t,e,i,n,!0)},updateAxisPointer:function(t,e,i,n){Sd(this,t,e,i,n,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),Wk.superApply(this,"remove",arguments)},dispose:function(t,e){Md(this,e),Wk.superApply(this,"dispose",arguments)}}),Hk=[];Wk.registerAxisPointerClass=function(t,e){if(eS&&Hk[t])throw new Error("axisPointer "+t+" exists");Hk[t]=e},Wk.getAxisPointerClass=function(t){return t&&Hk[t]};var Zk=["axisLine","axisTickLabel","axisName"],Uk=["splitArea","splitLine","minorSplitLine"],Xk=Wk.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xM,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),r=Id(a,t),s=new Nk(t,r);f(Zk,s.add,s),this._axisGroup.add(s.getGroup()),f(Uk,function(e){t.get(e+".show")&&this["_"+e](t,a)},this),lr(o,this._axisGroup,t),Xk.superCall(this,"render",t,e,i,n)}},remove:function(){Ad(this)},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),o=n.getModel("lineStyle"),a=o.get("color");a=_(a)?a:[a];for(var r=e.coordinateSystem.getRect(),l=i.isHorizontal(),u=0,h=i.getTicksCoords({tickModel:n}),c=[],d=[],f=o.getLineStyle(),p=0;p0&&Gd(i[o-1]);o--);for(;o>n&&Gd(i[n]);n++);}for(;o>n;)n+=Fd(t,i,n,o,o,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),uP=oa.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:RT(oa.prototype.brush),buildPath:function(t,e){var i=e.points,n=e.stackedOnPoints,o=0,a=i.length,r=e.smoothMonotone,s=Zd(i,e.smoothConstraint),l=Zd(n,e.smoothConstraint);if(e.connectNulls){for(;a>0&&Gd(i[a-1]);a--);for(;a>o&&Gd(i[o]);o++);}for(;a>o;){var u=Fd(t,i,o,a,a,1,s.min,s.max,e.smooth,r,e.connectNulls);Fd(t,n,o+u-1,u,a,-1,l.min,l.max,e.stackedOnSmooth,r,e.connectNulls),o+=u+1,t.closePath()}}});vl.extend({type:"line",init:function(){var t=new xM,e=new Pd;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var n=t.coordinateSystem,o=this.group,a=t.getData(),r=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),h="polar"===n.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=zd(n,a,y),_=jd(n,a,x),w=t.get("showSymbol"),b=w&&!h&&$d(t,a,n),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),S.setItemGraphicEl(e,null))}),w||d.remove(),o.add(g);var M,I=!h&&t.get("step");n&&n.getArea&&t.get("clip",!0)&&(M=n.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r1+=.5)),this._clipShapeForSymbol=M,f&&c.type===n.type&&I===this._step?(v&&!p?p=this._newPolygon(u,_,n,m):p&&!v&&(g.remove(p),p=this._polygon=null),g.setClipPath(Qd(n,!1,t)),w&&d.updateData(a,{isIgnore:b,clipShape:M}),a.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),Ud(this._stackedOnPoints,_)&&Ud(this._points,u)||(m?this._updateAnimation(a,_,n,i,I,y):(I&&(u=qd(u,n,I),_=qd(_,n,I)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:_})))):(w&&d.updateData(a,{isIgnore:b,clipShape:M}),I&&(u=qd(u,n,I),_=qd(_,n,I)),f=this._newPolyline(u,n,m),v&&(p=this._newPolygon(u,_,n,m)),g.setClipPath(Qd(n,!0,t)));var T=Kd(a,n)||a.getVisual("color");f.useStyle(s(r.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"}));var A=t.get("smooth");if(A=Yd(t.get("smooth")),f.setShape({smooth:A,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var D=a.getCalculationInfo("stackedOnSeries"),C=0;p.useStyle(s(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel"})),D&&(C=Yd(D.get("smooth"))),p.setShape({smooth:A,stackedOnSmooth:C,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=a,this._coordSys=n,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,i,n){var o=t.getData(),a=uo(o,n);if(!(a instanceof Array)&&null!=a&&a>=0){var r=o.getItemGraphicEl(a);if(!r){var s=o.getItemLayout(a);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;r=new Dd(o,a),r.position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,o.setItemGraphicEl(a,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else vl.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var o=t.getData(),a=uo(o,n);if(null!=a&&a>=0){var r=o.getItemGraphicEl(a);r&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else vl.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new lP({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uP({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,o,a){var r=this._polyline,s=this._polygon,l=t.hostModel,u=tP(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,a),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;if(o&&(h=qd(u.current,i,o),c=qd(u.stackedOnCurrent,i,o),d=qd(u.next,i,o),f=qd(u.stackedOnNext,i,o)),Xd(h,d)>3e3||s&&Xd(c,f)>3e3)return r.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));r.shape.__points=u.current,r.shape.points=h,nr(r,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),nr(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,m=0;me&&(e=t[i]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,i=0;i1){var u;"string"==typeof i?u=dP[i]:"function"==typeof i&&(u=i),u&&t.setData(e.downSample(e.mapDimension(a.dim),1/l,u,fP))}}}}};Nu(hP("line","circle","line")),Eu(cP("line")),Cu(OC.PROCESSOR.STATISTIC,pP("line"));var gP=function(t,e,i){e=_(e)&&{coordDimensions:e}||r({},e);var n=t.getSource(),o=gL(n,e),a=new dL(o,t);return a.initData(n,i),a},mP={updateSelectedMap:function(t){this._targetList=_(t)?t.slice():[],this._selectTargetMap=g(t||[],function(t,e){return t.set(e.name,e),t},B())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each(function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return null!=i?(this[i.selected?"unSelect":"select"](t,e),i.selected):void 0},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}},vP=Gu({type:"series.pie",init:function(t){vP.superApply(this,"init",arguments),this.legendVisualProvider=new tf(y(this.getData,this),y(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){vP.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(){return gP(this,{coordDimensions:["value"],encodeDefaulter:x(ys,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,o=t.count();o>n;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:ol(t,n,"selected")});return i},getDataParams:function(t){var e=this.getData(),i=vP.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),function(t){n.push(t)}),i.percent=Lr(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){eo(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}}); +c(vP,mP);var yP=of.prototype;yP.updateData=function(t,e,i){var n=this.childAt(0),o=this.childAt(1),a=this.childAt(2),l=t.hostModel,u=t.getItemModel(e),h=t.getItemLayout(e),c=r({},h);c.label=null;var d=l.getShallow("animationTypeUpdate");if(i){n.setShape(c);var f=l.getShallow("animationType");"scale"===f?(n.shape.r=h.r0,or(n,{shape:{r:h.r}},l,e)):(n.shape.endAngle=h.startAngle,nr(n,{shape:{endAngle:h.endAngle}},l,e))}else"expansion"===d?n.setShape(c):nr(n,{shape:c},l,e);var p=t.getItemVisual(e,"color");n.useStyle(s({lineJoin:"bevel",fill:p},u.getModel("itemStyle").getItemStyle())),n.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&n.attr("cursor",g),nf(this,t.getItemLayout(e),l.isSelected(t.getName(e)),l.get("selectedOffset"),l.get("animation"));var m=!i&&"transition"===d;this._updateLabel(t,e,m),this.highDownOnUpdate=l.get("silent")?null:function(t,e){var i=l.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===e?(o.ignore=o.hoverIgnore,a.ignore=a.hoverIgnore,i&&(n.stopAnimation(!0),n.animateTo({shape:{r:h.r+l.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,a.ignore=a.normalIgnore,i&&(n.stopAnimation(!0),n.animateTo({shape:{r:h.r}},300,"elasticOut")))},Fa(this)},yP._updateLabel=function(t,e,i){var n=this.childAt(1),o=this.childAt(2),a=t.hostModel,r=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"color");if(!l||isNaN(l.x)||isNaN(l.y))return void(o.ignore=o.normalIgnore=o.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0);var h={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},c={x:l.x,y:l.y};i?(nr(n,{shape:h},a,e),nr(o,{style:c},a,e)):(n.attr({shape:h}),o.attr({style:c})),o.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var d=r.getModel("label"),f=r.getModel("emphasis.label"),p=r.getModel("labelLine"),g=r.getModel("emphasis.labelLine"),u=t.getItemVisual(e,"color");Ua(o.style,o.hoverStyle={},d,f,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:l.text,autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),o.ignore=o.normalIgnore=!d.get("show"),o.hoverIgnore=!f.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!g.get("show"),n.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(p.getModel("lineStyle").getLineStyle()),n.hoverStyle=g.getModel("lineStyle").getLineStyle();var m=p.get("smooth");m&&m===!0&&(m=.4),n.setShape({smooth:m})},h(of,xM);var xP=(vl.extend({type:"pie",init:function(){var t=new xM;this._sectorGroup=t},render:function(t,e,i,n){if(!n||n.from!==this.uid){var o=t.getData(),a=this._data,r=this.group,s=e.get("animation"),l=!a,u=t.get("animationType"),h=t.get("animationTypeUpdate"),c=x(ef,this.uid,t,s,i),d=t.get("selectedMode");if(o.diff(a).add(function(t){var e=new of(o,t);l&&"scale"!==u&&e.eachChild(function(t){t.stopAnimation(!0)}),d&&e.on("click",c),o.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){var i=a.getItemGraphicEl(e);l||"transition"===h||i.eachChild(function(t){t.stopAnimation(!0)}),i.updateData(o,t),i.off("click"),d&&i.on("click",c),r.add(i),o.setItemGraphicEl(t,i)}).remove(function(t){var e=a.getItemGraphicEl(t);r.remove(e)}).execute(),s&&o.count()>0&&(l?"scale"!==u:"transition"!==h)){for(var f=o.getItemLayout(0),p=1;isNaN(f.startAngle)&&p=n.r0}}}),function(t,e){f(e,function(e){e.update="updateView",ku(e,function(i,n){var o={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each(function(e){var i=n.getName(e);o[i]=t.isSelected(i)||!1})}),{name:i.name,selected:o,seriesId:i.seriesId}})})}),_P=function(t){return{getTargetSeries:function(e){var i={},n=B();return e.eachSeriesByType(t,function(t){t.__paletteScope=i,n.set(t.uid,t)}),n},reset:function(t){var e=t.getRawData(),i={},n=t.getData();n.each(function(t){var e=n.getRawIndex(t);i[e]=t}),e.each(function(o){var a,r=i[o],s=null!=r&&n.getItemVisual(r,"color",!0),l=null!=r&&n.getItemVisual(r,"borderColor",!0);if(s&&l||(a=e.getItemModel(o)),!s){var u=a.get("itemStyle.color")||t.getColorFromPalette(e.getName(o)||o+"",t.__paletteScope,e.count());null!=r&&n.setItemVisual(r,"color",u)}if(!l){var h=a.get("itemStyle.borderColor");null!=r&&n.setItemVisual(r,"borderColor",h)}})}}},wP=Math.PI/180,bP=function(t,e,i,n,o,a){var r,s,l=t.getData(),u=[],h=!1,c=(t.get("minShowLabelAngle")||0)*wP;l.each(function(n){var a=l.getItemLayout(n),d=l.getItemModel(n),f=d.getModel("label"),p=f.get("position")||d.get("emphasis.label.position"),g=f.get("distanceToLabelLine"),m=f.get("alignTo"),v=Mr(f.get("margin"),i),y=f.get("bleedMargin"),x=f.getFont(),_=d.getModel("labelLine"),w=_.get("length");w=Mr(w,i);var b=_.get("length2");if(b=Mr(b,i),!(a.angleD?-1:1)*b,B=z;S="edge"===m?0>D?o+v:o+i-v:R+(0>D?-g:g),M=B,I=[[O,E],[N,z],[R,B]]}T=P?"center":"edge"===m?D>0?"right":"left":D>0?"left":"right"}var V,G=f.get("rotate");V="number"==typeof G?G*(Math.PI/180):G?0>D?-A+Math.PI:-A:0,h=!!V,a.label={x:S,y:M,position:p,height:k.height,len:w,len2:b,linePoints:I,textAlign:T,verticalAlign:"middle",rotation:V,inside:P,labelDistance:g,labelAlignTo:m,labelMargin:v,bleedMargin:y,textRect:k,text:L,font:x},P||u.push(a.label)}}),!h&&t.get("avoidLabelOverlap")&&rf(u,r,s,e,i,n,o,a)},SP=2*Math.PI,MP=Math.PI/180,IP=function(t,e,i){e.eachSeriesByType(t,function(t){var e=t.getData(),n=e.mapDimension("value"),o=lf(t,i),a=t.get("center"),r=t.get("radius");_(r)||(r=[0,r]),_(a)||(a=[a,a]);var s=Mr(o.width,i.getWidth()),l=Mr(o.height,i.getHeight()),u=Math.min(s,l),h=Mr(a[0],s)+o.x,c=Mr(a[1],l)+o.y,d=Mr(r[0],u/2),f=Mr(r[1],u/2),p=-t.get("startAngle")*MP,g=t.get("minAngle")*MP,m=0;e.each(n,function(t){!isNaN(t)&&m++});var v=e.getSum(n),y=Math.PI/(v||m)*2,x=t.get("clockwise"),w=t.get("roseType"),b=t.get("stillShowZeroSum"),S=e.getDataExtent(n);S[0]=0;var M=SP,I=0,T=p,A=x?1:-1;if(e.each(n,function(t,i){var n;if(isNaN(t))return void e.setItemLayout(i,{angle:0/0,startAngle:0/0,endAngle:0/0,clockwise:x,cx:h,cy:c,r0:d,r:w?0/0:f,viewRect:o});n="area"!==w?0===v&&b?y:t*y:SP/m,g>n?(n=g,M-=g):I+=t;var a=T+A*n;e.setItemLayout(i,{angle:n,startAngle:T,endAngle:a,clockwise:x,cx:h,cy:c,r0:d,r:w?Sr(t,S,[d,f]):f,viewRect:o}),T=a}),SP>M&&m)if(.001>=M){var D=SP/m;e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=D,n.startAngle=p+A*i*D,n.endAngle=p+A*(i+1)*D}})}else y=M/I,T=p,e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),o=n.angle===g?g:t*y;n.startAngle=T,n.endAngle=T+A*o,T+=A*o}});bP(t,f,o.width,o.height,o.x,o.y)})},TP=function(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf(function(t){for(var e=n.getName(t),o=0;o=0;s--){var l=2*s,u=n[l]-a/2,h=n[l+1]-r/2;if(t>=u&&e>=h&&u+a>=t&&h+r>=e)return s}return-1}}),CP=uf.prototype;CP.isPersistent=function(){return!this._incremental},CP.updateData=function(t,e){this.group.removeAll();var i=new DP({rectHover:!0,cursor:"default"});i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!1,e),this.group.add(i),this._incremental=null},CP.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)})}},CP.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new va({silent:!0})),this.group.add(this._incremental)):this._incremental=null},CP.incrementalUpdate=function(t,e,i){var n;this._incremental?(n=new DP,this._incremental.addDisplayable(n,!0)):(n=new DP({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),n.incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!!this._incremental,i)},CP._setCommon=function(t,e,i,n){var o=e.hostModel;n=n||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=oc(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var r=t.shape.size[0]=0&&(t.dataIndex=i+(t.startIndex||0))}))},CP.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},CP._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},Fu({type:"scatter",render:function(t){var e=t.getData(),i=this._updateSymbolDraw(e,t);i.updateData(e,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t){var e=t.getData(),i=this._updateSymbolDraw(e,t);i.incrementalPrepareUpdate(e),this._finished=!1},incrementalRender:function(t,e){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t){var e=t.getData();if(this.group.dirty(),!this._finished||e.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=cP().reset(t);i.progress&&i.progress({start:0,end:e.count()},e),this._symbolDraw.updateLayout(e)},_getClipShape:function(t){var e=t.coordinateSystem,i=e&&e.getArea&&e.getArea();return t.get("clip",!0)?i:null},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext,o=n.large;return i&&o===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=o?new uf:new Pd,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},remove:function(){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),Nu(hP("scatter","circle")),Eu(cP("scatter")),CD.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(){return bh(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var LP=3,kP=df.prototype;kP.stopEffectAnimation=function(){this.childAt(1).removeAll()},kP.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),o=0;LP>o;o++){var a=oc(e,-1,-1,2,2,i);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var r=-o/LP*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(r).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(r).start(),n.add(a)}cf(n,t)},kP.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],o=0;o0?WP:HP)}function o(t,e){return e.get(t>0?GP:FP)}var a=t.getData();if(a.setVisual({legendSymbol:"roundRect",colorP:n(1,t),colorN:n(-1,t),borderColorP:o(1,t),borderColorN:o(-1,t)}),!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:i}}}},UP="undefined"!=typeof Float32Array?Float32Array:Array,XP={seriesType:"candlestick",plan:PD(),reset:function(t){function e(t,e){function i(t,e){var i=[];return i[r]=e,i[s]=t,isNaN(e)||isNaN(t)?[0/0,0/0]:n.dataToPoint(i)}function o(t,e,i){var n=e.slice(),o=e.slice();n[r]=pA(n[r]+a/2,1,!1),o[r]=pA(o[r]-a/2,1,!0),i?t.push(n,o):t.push(o,n)}function l(t,e,n){var o=i(t,n),l=i(e,n);return o[r]-=a/2,l[r]-=a/2,{x:o[0],y:o[1],width:s?a:l[0]-o[0],height:s?l[1]-o[1]:a}}function h(t){return t[r]=pA(t[r],1),t}for(var g;null!=(g=t.next());){var m=e.get(u,g),v=e.get(c,g),y=e.get(d,g),x=e.get(f,g),_=e.get(p,g),w=Math.min(v,y),b=Math.max(v,y),S=i(w,m),M=i(b,m),I=i(x,m),T=i(_,m),A=[];o(A,M,0),o(A,S,1),A.push(h(T),h(M),h(I),h(S)),e.setItemLayout(g,{sign:xf(e,g,v,y,d),initBaseline:v>y?M[s]:S[s],ends:A,brushRect:l(x,_,m)})}}function i(t,e){for(var i,o,a=new UP(4*t.count),l=0,h=[],g=[];null!=(o=t.next());){var m=e.get(u,o),v=e.get(c,o),y=e.get(d,o),x=e.get(f,o),_=e.get(p,o);isNaN(m)||isNaN(x)||isNaN(_)?(a[l++]=0/0,l+=3):(a[l++]=xf(e,o,v,y,d),h[r]=m,h[s]=x,i=n.dataToPoint(h,null,g),a[l++]=i?i[0]:0/0,a[l++]=i?i[1]:0/0,h[s]=_,i=n.dataToPoint(h,null,g),a[l++]=i?i[1]:0/0)}e.setLayout("largePoints",a)}var n=t.coordinateSystem,o=t.getData(),a=_f(t,o),r=0,s=1,l=["x","y"],u=o.mapDimension(l[r]),h=o.mapDimension(l[s],!0),c=h[0],d=h[1],f=h[2],p=h[3];return o.setLayout({candleWidth:a,isSimpleBox:1.3>=a}),null==u||h.length<4?void 0:{progress:t.pipelineContext.large?i:e}}};Du(VP),Nu(ZP),Eu(XP),h(wf,sk),bf.prototype.getIndicatorAxes=function(){return this._indicatorAxes},bf.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},bf.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],n=i.angle,o=this.cx+t*Math.cos(n),a=this.cy-t*Math.sin(n);return[o,a]},bf.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var o,a=Math.atan2(-i,e),r=1/0,s=-1,l=0;lh&&(o=u,s=l,r=h)}return[s,+(o&&o.coordToData(n))]},bf.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),o=e.getHeight(),a=Math.min(n,o)/2;this.cx=Mr(i[0],n),this.cy=Mr(i[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var r=t.get("radius");("string"==typeof r||"number"==typeof r)&&(r=[0,r]),this.r0=Mr(r[0],a),this.r=Mr(r[1],a),f(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i},this)},bf.prototype.update=function(t){function e(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}var i=this._indicatorAxes,n=this._model;f(i,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===n){var o=e.getData();f(i,function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))})}},this);var o=n.get("splitNumber");f(i,function(t){var i=Xh(t.scale,t.model).extent;jh(t.scale,t.model);var n=t.model,a=t.scale,r=n.getMin(),s=n.getMax(),l=a.getInterval();if(null!=r&&null!=s)a.setExtent(+r,+s),a.setInterval((s-r)/o);else if(null!=r){var u;do u=r+l*o,a.setExtent(+r,u),a.setInterval(l),l=e(l);while(ui[0]&&isFinite(h)&&isFinite(i[0]))}else{var c=a.getTicks().length-1;c>o&&(l=e(l));var u=Math.ceil(i[1]/l)*l,h=Ir(u-l*o);a.setExtent(h,u),a.setInterval(l)}})},bf.dimensions=[],bf.create=function(t,e){var i=[];return t.eachComponent("radar",function(n){var o=new bf(n,t,e);i.push(o),n.coordinateSystem=o}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},ks.register("radar",bf);var YP=pk.valueAxis,jP=(Bu({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),l=this.get("axisTick"),u=this.get("axisType"),h=this.get("axisLabel"),c=this.get("name"),d=this.get("name.show"),f=this.get("name.formatter"),g=this.get("nameGap"),m=this.get("triggerEvent"),v=p(this.get("indicator")||[],function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var v=c;if(null!=p.color&&(v=s({color:p.color},c)),p=o(n(p),{boundaryGap:t,splitNumber:e,scale:i,axisLine:a,axisTick:l,axisType:u,axisLabel:h,name:p.text,nameLocation:"end",nameGap:g,nameTextStyle:v,triggerEvent:m},!1),d||(p.name=""),"string"==typeof f){var y=p.name;p.name=f.replace("{value}",null!=y?y:"")}else"function"==typeof f&&(p.name=f(p.name,p));var x=r(new mr(p,null,this.ecModel),XL);return x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this.getIndicatorModels=function(){return v}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:o({lineStyle:{color:"#bbb"}},YP.axisLine),axisLabel:Sf(YP.axisLabel,!1),axisTick:Sf(YP.axisTick,!1),axisType:"interval",splitLine:Sf(YP.splitLine,!0),splitArea:Sf(YP.splitArea,!0),indicator:[]}}),["axisLine","axisTickLabel","axisName"]);Vu({type:"radar",render:function(t){var e=this.group;e.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=p(i,function(t){var i=new Nk(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i});f(n,function(t){f(jP,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var o=t.get("shape"),a=t.getModel("splitLine"),r=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=r.getModel("areaStyle"),h=a.get("show"),c=r.get("show"),d=l.get("color"),g=u.get("color");d=_(d)?d:[d],g=_(g)?g:[g];var m=[],v=[];if("circle"===o)for(var y=n[0].getTicksCoords(),x=i.cx,w=i.cy,b=0;b=b;b++){for(var A=[],D=0;D":"\n";return Wr(""===s?this.name:s)+l+p(r,function(e){var i=o.get(o.mapDimension(e.dim),t);return Wr(e.name+" : "+i)}).join(l)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,n=e.getValues(p(i.dimensions,function(t){return e.mapDimension(t)}),t,!0),o=0,a=n.length;a>o;o++)if(!isNaN(n[o])){var r=i.getIndicatorAxes();return i.coordToPoint(r[o].dataToCoord(n[o]),o)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});Fu({type:"radar",render:function(t){function e(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var o=Mf(t.getItemVisual(e,"symbolSize")),a=oc(i,-1,-1,2,2,n),r=t.getItemVisual(e,"symbolRotate")||0;return a.attr({style:{strokeNoScale:!0},z2:100,scale:[o[0]/2,o[1]/2],rotation:r*Math.PI/180||0}),a}}function i(i,n,o,a,r,s){o.removeAll();for(var l=0;lf;++f){var p=t[f],g=p[0],m=p[1],v=p[2],y=n(v);c.globalAlpha=y,c.drawImage(r,g-u,m-u)}if(!h.width||!h.height)return h;for(var x=c.getImageData(0,0,h.width,h.height),_=x.data,w=0,b=_.length,S=this.minOpacity,M=this.maxOpacity,I=M-S;b>w;){var y=_[w+3]/256,T=4*Math.floor(y*(JP-1));if(y>0){var A=a(y)?s:l;y>0&&(y=y*I+S),_[w++]=A[T],_[w++]=A[T+1],_[w++]=A[T+2],_[w++]=A[T+3]*y*256}else w+=4}return c.putImageData(x,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=mS()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,o=n[i]||(n[i]=new Uint8ClampedArray(1024)),a=[0,0,0,0],r=0,s=0;256>s;s++)e[i](s/255,!0,a),o[r++]=a[0],o[r++]=a[1],o[r++]=a[2],o[r++]=a[3];return o}},Fu({type:"heatmap",render:function(t,e,i){var n;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),eS&&!n)throw new Error("Heatmap must use with visualMap");this.group.removeAll(),this._incrementalDisplayable=null;var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):Lf(o)&&this._renderOnGeo(o,t,n,i)},incrementalPrepareRender:function(){this.group.removeAll()},incrementalRender:function(t,e,i,n){var o=e.coordinateSystem;o&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,o){var a,s,l=t.coordinateSystem;if("cartesian2d"===l.type){var u=l.getAxis("x"),h=l.getAxis("y");if(eS){if("category"!==u.type||"category"!==h.type)throw new Error("Heatmap on cartesian must have two category axes");if(!u.onBand||!h.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}a=u.getBandWidth(),s=h.getBandWidth()}for(var c=this.group,d=t.getData(),f="itemStyle",p="emphasis.itemStyle",g="label",m="emphasis.label",v=t.getModel(f).getItemStyle(["color"]),y=t.getModel(p).getItemStyle(),x=t.getModel(g),_=t.getModel(m),w=l.type,b="cartesian2d"===w?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],S=i;n>S;S++){var M;if("cartesian2d"===w){if(isNaN(d.get(b[2],S)))continue;var I=l.dataToPoint([d.get(b[0],S),d.get(b[1],S)]);M=new XT({shape:{x:Math.floor(Math.round(I[0])-a/2),y:Math.floor(Math.round(I[1])-s/2),width:Math.ceil(a),height:Math.ceil(s)},style:{fill:d.getItemVisual(S,"color"),opacity:d.getItemVisual(S,"opacity")}})}else{if(isNaN(d.get(b[1],S)))continue;M=new XT({z2:1,shape:l.dataToRect([d.get(b[0],S)]).contentShape,style:{fill:d.getItemVisual(S,"color"),opacity:d.getItemVisual(S,"opacity")}})}var T=d.getItemModel(S);d.hasItemOption&&(v=T.getModel(f).getItemStyle(["color"]),y=T.getModel(p).getItemStyle(),x=T.getModel(g),_=T.getModel(m));var A=t.getRawValue(S),D="-";A&&null!=A[2]&&(D=A[2]),Ua(v,y,x,_,{labelFetcher:t,labelDataIndex:S,defaultText:D,isRectText:!0}),M.setStyle(v),Fa(M,d.hasItemOption?y:r({},y)),M.incremental=o,o&&(M.useHoverLayer=!0),c.add(M),d.setItemGraphicEl(S,M)}},_renderOnGeo:function(t,e,i,n){var o=i.targetVisuals.inRange,a=i.targetVisuals.outOfRange,r=e.getData(),s=this._hmLayer||this._hmLayer||new Af;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),d=Math.min(l.width+l.x,n.getWidth()),f=Math.min(l.height+l.y,n.getHeight()),p=d-h,g=f-c,m=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],v=r.mapArray(m,function(e,i,n){var o=t.dataToPoint([e,i]);return o[0]-=h,o[1]-=c,o.push(n),o}),y=i.getExtent(),x="visualMap.continuous"===i.type?Cf(y,i.option.range):Df(y,i.getPieceList(),i.option.selected);s.update(v,p,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:a.color.getColorMapper()},x);var _=new Dn({style:{width:p,height:g,x:h,y:c,image:s.canvas},silent:!0});this.group.add(_)},dispose:function(){}});var QP=f,tO="\x00__link_datas",eO="\x00__link_mainData",iO=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};iO.prototype={constructor:iO,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,i){"function"==typeof t&&(i=e,e=t,t=null),t=t||{},b(t)&&(t={order:t});var n,o=t.order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(n=e.call(i,this));for(var r=0;!n&&re&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;n>e;e++){var o=i[e].getNodeById(t);if(o)return o}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i.length;n>e;e++){var o=i[e].contains(t);if(o)return o}},getAncestors:function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,i=e.data.getItemModel(this.dataIndex);return i.getModel(t)}},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Vf.prototype={constructor:Vf,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;n>i;i++)e[i].dataIndex=-1;for(var i=0,n=t.count();n>i;i++)e[t.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},Vf.createTree=function(t,e,i){function n(t,e){var i=t.value;r=Math.max(r,_(i)?i.length:1),a.push(t);var s=new iO(t.name,o);e?Gf(s,e):o.root=s,o._nodes.push(s);var l=t.children;if(l)for(var u=0;ur&&(r=t.depth)});var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return a.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l}),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),o=n.getValue(),a=n.name;n&&n!==i;)a=n.parentNode.name+"."+a,n=n.parentNode;return Wr(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});var nO=ae;c(tp,ZS),ep.prototype={constructor:ep,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new Ti(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new Ti(t,e,i,n)},transformTo:function(t,e,i,n){var o=this.getBoundingRect(),a=this._rawTransformable;a.transform=o.calculateTransform(new Ti(t,e,i,n)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,i=t.y+t.height/2;return[e,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=ae([],n,t),i=ae([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Ne(this.transform||(this.transform=[]),e.transform||Oe()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ge(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?k(t):Oe(),rawScale:k(e.scale),rawPosition:k(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?nO(i,t,n):W(i,t)},pointToData:function(t){var e=this.invTransform;return e?nO([],t,e):[t[0],t[1]]},convertToPixel:x(ip,"dataToPoint"),convertFromPixel:x(ip,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},c(ep,ZS);var oO="\x00_ec_interaction_mutex";ku({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),c(up,AS);var aO={axisPointer:1,tooltip:1,brush:1},rO=ya({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.childPoints,n=i.length,o=e.parentPoint,a=i[0],r=i[n-1];if(1===n)return t.moveTo(o[0],o[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,h=Mr(e.forkPosition,1),c=[];c[l]=o[l],c[u]=o[u]+(r[u]-o[u])*h,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(a[0],a[1]),c[l]=a[l],t.lineTo(c[0],c[1]),c[l]=r[l],t.lineTo(c[0],c[1]),t.lineTo(r[0],r[1]);for(var d=1;n-1>d;d++){var f=i[d];t.moveTo(f[0],f[1]),c[l]=f[l],t.lineTo(c[0],c[1])}}});Fu({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new xM,this._controller=new up(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,i){var n=t.getData(),o=t.layoutInfo,a=this._mainGroup,r=t.get("layout");"radial"===r?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(t,o,r),this._updateController(t,e,i);var s=this._data,l={expandAndCollapse:t.get("expandAndCollapse"),layout:r,edgeShape:t.get("edgeShape"),edgeForkPosition:t.get("edgeForkPosition"),orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};n.diff(s).add(function(e){xp(n,e)&&wp(n,e,null,a,t,l)}).update(function(e,i){var o=s.getItemGraphicEl(i);return xp(n,e)?void wp(n,e,o,a,t,l):void(o&&Sp(s,i,o,a,t,l))}).remove(function(e){var i=s.getItemGraphicEl(e);i&&Sp(s,e,i,a,t,l)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),l.expandAndCollapse===!0&&n.eachItemGraphicEl(function(e,n){e.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})})}),this._data=n},_updateViewCoordSys:function(t){var e=t.getData(),i=[];e.each(function(t){var n=e.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])});var n=[],o=[];Vo(i,n,o);var a=this._min,r=this._max;o[0]-n[0]===0&&(n[0]=a?a[0]:n[0]-1,o[0]=r?r[0]:o[0]+1),o[1]-n[1]===0&&(n[1]=a?a[1]:n[1]-1,o[1]=r?r[1]:o[1]+1);var s=t.coordinateSystem=new ep;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=n,this._max=o},_updateController:function(t,e,i){var n=this._controller,o=this._controllerHost,a=this.group;n.setPointerChecker(function(e,n,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(n,o)&&!yp(e,i,t)}),n.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(e){np(o,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})},this).on("zoom",function(e){op(o,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl(function(t){t.attr("scale",n)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,o=n&&n[0]||1,a=e.getZoom(),r=(a-1)*i+1;return r/o},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),ku({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=t.dataIndex,n=e.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),ku({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=e.coordinateSystem,n=Ip(i,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)})});var sO=function(t,e){t.eachSeriesByType("tree",function(t){Dp(t,e)})};Nu(hP("tree","circle")),Eu(sO),CD.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){function i(t){t.wrapMethod("getItemModel",function(t,e){var i=l.getNodeByDataIndex(e),n=s[i.depth];return t.parentModel=n||r,t})}var n={name:t.name,children:t.data};Op(n);var o=t.levels||[],a=this.designatedVisualItemStyle={},r=new mr({itemStyle:a},this,e);o=t.levels=Ep(o,e);var s=p(o||[],function(t){return new mr(t,r,e)},this),l=Vf.createTree(n,this,i);return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=Gr(_(i)?i[0]:i),o=e.getName(t);return Wr(o+": "+n)},getDataParams:function(t){var e=CD.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=Pp(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},r(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=B(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;(!t||t!==e&&!e.contains(t))&&(this._viewRoot=e)}});var lO=8,uO=8,hO=5;Np.prototype={constructor:Np,render:function(t,e,i,n){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&i){var r=o.getModel("itemStyle"),s=r.getModel("textStyle"),l={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,r,s,n),es(a,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var o=n.getModel().get("name"),a=i.getTextRect(o),r=Math.max(a.width+2*lO,e.emptyItemWidth);e.totalWidth+=r+uO,e.renderList.push({node:n,text:o,width:r})}},_renderContent:function(t,e,i,n,o){for(var a=0,r=e.emptyItemWidth,l=t.get("breadcrumb.height"),u=Qr(e.pos,e.box),h=e.totalWidth,c=e.renderList,d=c.length-1;d>=0;d--){var f=c[d],p=f.node,g=f.width,m=f.text;h>u.width&&(h-=g-r,g=r,m=null);var v=new WT({shape:{points:zp(a,0,g,l,d===c.length-1,0===d)},style:s(i.getItemStyle(),{lineJoin:"bevel",text:m,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:x(o,p)});this.group.add(v),Rp(v,t,p),a+=g+uO}},remove:function(){this.group.removeAll()}};var cO=y,dO=xM,fO=XT,pO=f,gO=3,mO=["label"],vO=["emphasis","label"],yO=["upperLabel"],xO=["emphasis","upperLabel"],_O=10,wO=1,bO=2,SO=AI([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),MO=function(t){var e=SO(t);return e.stroke=e.fill=e.lineWidth=null,e};Fu({type:"treemap",init:function(){this._containerGroup,this._storage=Vp(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){var o=e.findComponents({mainType:"series",subType:"treemap",query:n});if(!(u(o,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var a=["treemapZoomToNode","treemapRootToNode"],r=Cp(n,a,t),s=n&&n.type,l=t.layoutInfo,h=!this._oldTree,c=this._storage,d="treemapRootToNode"===s&&r&&c?{rootNodeGroup:c.nodeGroup[r.node.getRawIndex()],direction:n.direction}:null,f=this._giveContainerGroup(l),p=this._doRender(f,t,d);h||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(f,p,t,d),this._resetController(i),this._renderBreadcrumb(t,i,r)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new dO,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){function n(t,e,i,o,a){function r(t){return t.getId()}function s(r,s){var l=null!=r?t[r]:null,u=null!=s?e[s]:null,h=d(l,u,i,a);h&&n(l&&l.viewChildren||[],u&&u.viewChildren||[],h,o,a+1)}o?(e=t,pO(t,function(t,e){!t.isRemoved()&&s(e,e)})):new Xu(e,t,r,r).add(s).update(s).remove(x(s,null)).execute()}function o(t){var e=Vp();return t&&pO(t,function(t,i){var n=e[i];pO(t,function(t){t&&(n.push(t),t.__tmWillDelete=1)})}),e}function a(){pO(f,function(t){pO(t,function(t){t.parent&&t.parent.remove(t)})}),pO(c,function(t){t.invisible=!0,t.dirty()})}var r=e.getData().tree,s=this._oldTree,l=Vp(),u=Vp(),h=this._storage,c=[],d=x(Gp,e,u,h,i,l,c);n(r.root?[r.root]:[],s&&s.root?[s.root]:[],t,r===s||!s,0);var f=o(h);return this._oldTree=r,this._storage=u,{lastsForAnimation:l,willDeleteEls:f,renderFinally:a}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var o=i.get("animationDurationUpdate"),a=i.get("animationEasing"),s=Bp();pO(e.willDeleteEls,function(t,e){pO(t,function(t){if(!t.invisible){var i,r=t.parent;if(n&&"drillDown"===n.direction)i=r===n.rootNodeGroup?{shape:{x:0,y:0,width:r.__tmNodeWidth,height:r.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var l=0,u=0;r.__tmWillDelete||(l=r.__tmNodeWidth/2,u=r.__tmNodeHeight/2),i="nodeGroup"===e?{position:[l,u],style:{opacity:0}}:{shape:{x:l,y:u,width:0,height:0},style:{opacity:0}}}i&&s.add(t,i,o,a)}})}),pO(this._storage,function(t,i){pO(t,function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,o,a))})},this),this._state="animating",s.done(cO(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new up(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",cO(this._onPan,this)),e.on("zoom",cO(this._onZoom,this)));var i=new Ti(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>gO||Math.abs(t.dy)>gO)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},_onZoom:function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var a=new Ti(o.x,o.y,o.width,o.height),r=this.seriesModel.layoutInfo;e-=r.x,i-=r.y;var s=Oe();Re(s,s,[-e,-i]),Ve(s,s,[t.scale,t.scale]),Re(s,s,[e,i]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var o=n.hostTree.data.getItemModel(n.dataIndex),a=o.get("link",!0),r=o.get("target",!0)||"blank";a&&$r(a,r)}}}}},this)},_renderBreadcrumb:function(t,e,i){function n(e){"animating"!==this._state&&(kp(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Np(this.group))).render(t,e,i.node,cO(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Vp(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(n){var o=this._storage.background[n.getRawIndex()];if(o){var a=o.transformCoordToLocal(t,e),r=o.shape;if(!(r.x<=a[0]&&a[0]<=r.x+r.width&&r.y<=a[1]&&a[1]<=r.y+r.height))return!1;i={node:n,offsetX:a[0],offsetY:a[1]}}},this),i}});for(var IO=function(){},TO=["treemapZoomToNode","treemapRender","treemapMove"],AO=0;AOn&&(a=n,o=i)}for(var o,a=1/0,r=0,s=e.length;s>r;r++){var l=e[r].value;if(null!=l){if(l===t||"string"==typeof l&&l===t+"")return r;i&&n(l,r)}}for(var r=0,s=e.length;s>r;r++){var u=e[r],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if(Qp(c[1],t,h[1]))return r}else if(1/0===h[1]){if(Qp(c[0],h[0],t))return r}else if(Qp(c[0],h[0],t)&&Qp(c[1],t,h[1]))return r;i&&n(h[0],r),i&&n(h[1],r)}}return i?1/0===t?e.length-1:t===-1/0?0:o:void 0};var EO=_,NO="itemStyle",zO={seriesType:"treemap",reset:function(t){var e=t.getData().tree,i=e.root;i.isRemoved()||tg(i,{},t.getViewRoot().getAncestors(),t)}},RO=Math.max,BO=Math.min,VO=D,GO=f,FO=["itemStyle","borderWidth"],WO=["itemStyle","gapWidth"],HO=["upperLabel","show"],ZO=["upperLabel","height"],UO={seriesType:"treemap",reset:function(t,e,i,n){var o=i.getWidth(),a=i.getHeight(),s=t.option,l=ts(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),u=s.size||[],h=Mr(VO(l.width,u[0]),o),c=Mr(VO(l.height,u[1]),a),d=n&&n.type,f=["treemapZoomToNode","treemapRootToNode"],p=Cp(n,f,t),g="treemapRender"===d||"treemapMove"===d?n.rootRect:null,m=t.getViewRoot(),v=Lp(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?gg(t,p,m,h,c):g?[g.width,g.height]:[h,c],x=s.sort;x&&"asc"!==x&&"desc"!==x&&(x="desc");var _={squareRatio:s.squareRatio,sort:x,leafDepth:s.leafDepth};m.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(w),lg(m,_,!1,0);var w=m.getLayout();GO(v,function(t,e){var i=(v[e+1]||m).getValue();t.setLayout(r({dataExtent:[i,i],borderWidth:0,upperHeight:0},w))})}var b=t.getData().tree.root;b.setLayout(mg(l,g,p),!0),t.setLayoutInfo(l),vg(b,new Ti(-l.x,-l.y,o,a),v,m,0)}};Nu(zO),Eu(UO),CD.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){function i(t){t.wrapMethod("getItemModel",function(t,e){var i=a.getNodeByDataIndex(e),n=o[i.depth];return n&&(t.parentModel=n),t})}var n={name:t.name,children:t.data};xg(n);var o=p(t.levels||[],function(t){return new mr(t,this,e)},this),a=Vf.createTree(n,this,i);return a.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=CD.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=Pp(i,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot +},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;(!t||t!==e&&!e.contains(t))&&(this._viewRoot=e)}});var XO={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},YO=2,jO=4,qO=_g.prototype;qO.updateData=function(t,e,i,n,a){this.node=e,e.piece=this,n=n||this._seriesModel,a=a||this._ecModel;var l=this.childAt(0);l.dataIndex=e.dataIndex;var u=e.getModel(),h=e.getLayout(),c=r({},h);c.label=null;var d=wg(e,n,a);Mg(e,n,d);var f,p=u.getModel("itemStyle").getItemStyle();if("normal"===i)f=p;else{var g=u.getModel(i+".itemStyle").getItemStyle();f=o(g,p)}f=s({lineJoin:"bevel",fill:f.fill||d},f),t?(l.setShape(c),l.shape.r=h.r0,nr(l,{shape:{r:h.r}},n,e.dataIndex),l.useStyle(f)):"object"==typeof f.fill&&f.fill.type||"object"==typeof l.style.fill&&l.style.fill.type?(nr(l,{shape:c},n),l.useStyle(f)):nr(l,{shape:c,style:f},n),this._updateLabel(n,d,i);var m=u.getShallow("cursor");if(m&&l.attr("cursor",m),t){var v=n.getShallow("highlightPolicy");this._initEvents(l,e,n,v)}this._seriesModel=n||this._seriesModel,this._ecModel=a||this._ecModel,Fa(this)},qO.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):Sg(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==XO.NONE&&i.piece.childAt(0).trigger("downplay"))})},qO.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},qO.onHighlight=function(){this.updateData(!1,this.node,"highlight")},qO.onDownplay=function(){this.updateData(!1,this.node,"downplay")},qO._updateLabel=function(t,e,i){function n(t){var e=r.get(t);return null==e?a.get(t):e}var o=this.node.getModel(),a=o.getModel("label"),r="normal"===i||"emphasis"===i?a:o.getModel(i+".label"),s=o.getModel("emphasis.label"),l=r.get("formatter"),u=l?i:"normal",h=D(t.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);n("show")===!1&&(h="");var c=this.node.getLayout(),d=r.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var f=c.endAngle-c.startAngle;null!=d&&Math.abs(f)Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(g=c.r0+_,m>Math.PI/2&&(w="right")):"right"===w&&(g=c.r-_,m>Math.PI/2&&(w="left")):(g=(c.r+c.r0)/2,w="center"),p.attr("style",{text:h,textAlign:w,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var b=g*v+c.cx,S=g*y+c.cy;p.attr("position",[b,S]);var M=n("rotate"),I=0;"radial"===M?(I=-m,I<-Math.PI/2&&(I+=Math.PI)):"tangential"===M?(I=Math.PI/2-m,I>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):"number"==typeof M&&(I=M*Math.PI/180),p.attr("rotation",I)},qO._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var o=this,a=function(){o.onEmphasis(n)},r=function(){o.onNormal()},s=function(){o.onDownplay()},l=function(){o.onHighlight()};i.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",r).on("emphasis",a).on("normal",r).on("downplay",s).on("highlight",l)},h(_g,xM);var KO="sunburstRootToNode",$O=(vl.extend({type:"sunburst",init:function(){},render:function(t,e,i,n){function o(t,e){function i(t){return t.getId()}function n(i,n){var o=null==i?null:t[i],r=null==n?null:e[n];a(o,r)}(0!==t.length||0!==e.length)&&new Xu(e,t,i,i).add(n).update(n).remove(x(n,null)).execute()}function a(i,n){if(f||!i||i.getValue()||(i=null),i!==h&&n!==h)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),u.setItemGraphicEl(i.dataIndex,n.piece)):r(n);else if(i){var o=new _g(i,t,e);d.add(o),u.setItemGraphicEl(i.dataIndex,o)}}function r(t){t&&t.piece&&(d.remove(t.piece),t.piece=null)}function s(i,n){if(n.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,i,"normal",t,e):(l.virtualPiece=new _g(i,t,e),d.add(l.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var o=function(){l._rootToNode(n.parentNode)};n.piece._onclickEvent=o,l.virtualPiece.on("click",o)}else l.virtualPiece&&(d.remove(l.virtualPiece),l.virtualPiece=null)}var l=this;this.seriesModel=t,this.api=i,this.ecModel=e;var u=t.getData(),h=u.tree.root,c=t.getViewRoot(),d=this.group,f=t.get("renderLabelForZeroData"),p=[];c.eachNode(function(t){p.push(t)});var g=this._oldChildren||[];if(o(p,g),s(h,c),n&&n.highlight&&n.highlight.piece){var m=t.getShallow("highlightPolicy");n.highlight.piece.onEmphasis(m)}else if(n&&n.unhighlight){var v=this.virtualPiece;!v&&h.children.length&&(v=h.children[0].piece),v&&v.onNormal()}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var o=n.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(n);else if("link"===o){var a=n.getModel(),r=a.get("link");if(r){var s=a.get("target",!0)||"_blank";$r(r,s)}}i=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:KO,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,a=t[1]-n.cy,r=Math.sqrt(o*o+a*a);return r<=n.r&&r>=n.r0}}}),"sunburstRootToNode");ku({type:$O,update:"updateView"},function(t,e){function i(e){var i=Cp(t,[$O],e);if(i){var n=e.getViewRoot();n&&(t.direction=kp(n,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)});var JO="sunburstHighlight";ku({type:JO,update:"updateView"},function(t,e){function i(e){var i=Cp(t,[JO],e);i&&(t.highlight=i.node)}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)});var QO="sunburstUnhighlight";ku({type:QO,update:"updateView"},function(t,e){function i(){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)});var tE=Math.PI/180,eE=function(t,e,i){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");_(n)||(n=[0,n]),_(e)||(e=[e,e]);var o=i.getWidth(),a=i.getHeight(),r=Math.min(o,a),s=Mr(e[0],o),l=Mr(e[1],a),u=Mr(n[0],r/2),h=Mr(n[1],r/2),c=-t.get("startAngle")*tE,d=t.get("minAngle")*tE,p=t.getData().tree.root,g=t.getViewRoot(),m=g.depth,v=t.get("sort");null!=v&&Ig(g,v);var y=0;f(g.children,function(t){!isNaN(t.getValue())&&y++});var x=g.getValue(),w=Math.PI/(x||y)*2,b=g.depth>0,S=g.height-(b?-1:1),M=(h-u)/(S||1),I=t.get("clockwise"),T=t.get("stillShowZeroSum"),A=I?1:-1,D=function(t,e){if(t){var i=e;if(t!==p){var n=t.getValue(),o=0===x&&T?w:n*w;d>o&&(o=d),i=e+A*o;var a=t.depth-m-(b?-1:1),h=u+M*a,c=u+M*(a+1),g=t.getModel();null!=g.get("r0")&&(h=Mr(g.get("r0"),r/2)),null!=g.get("r")&&(c=Mr(g.get("r"),r/2)),t.setLayout({angle:o,startAngle:e,endAngle:i,clockwise:I,cx:s,cy:l,r0:h,r:c})}if(t.children&&t.children.length){var v=0;f(t.children,function(t){v+=D(t,e+v)})}return i-e}};if(b){var C=u,L=u+M,k=2*Math.PI;p.setLayout({angle:k,startAngle:c,endAngle:c+k,clockwise:I,cx:s,cy:l,r0:C,r:L})}D(g,c)})};Nu(x(_P,"sunburst")),Eu(x(eE,"sunburst")),Cu(x(TP,"sunburst"));for(var iE=[126,25],nE=[[[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]]],oE=0;oEa;a++){var s=t.getName(a);i.set(s,!0),n.push({name:s,value:t.get(e,a),selected:ol(t,a,"selected")})}var l=yE.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return f(l.regions,function(t){var e=t.name;i.get(e)||(n.push({name:e}),o.push(e))}),this.updateSelectedMap(n),t.appendValues([],o),t},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t,e,i,n){for(var o=this.getData(),a=Gr(this.getRawValue(t)),r=o.getName(t),s=this.seriesGroup,l=[],u=0;u":"\n";return l.join(", ")+d+Wr(r+" : "+a)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});c(xE,mP),Ng.prototype={constructor:Ng,draw:function(t,e,i,n,o){var a="geo"===t.mainType,r=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},function(e){r||e.getHostGeoModel()!==t||(r=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l,u=this._regionsGroup,h=this.group,c=s.getTransformInfo(),d=!u.childAt(0)||o;if(d)h.transform=c.roamTransform,h.decomposeTransform(),h.dirty();else{var p=new ZS;p.transform=c.roamTransform,p.decomposeTransform();var g={scale:p.scale,position:p.position};l=p.scale,nr(h,g,t)}var m=c.rawScale,v=c.rawPosition;u.removeAll();var y=["itemStyle"],x=["emphasis","itemStyle"],_=["label"],w=["emphasis","label"],b=B();f(s.regions,function(e){var i=b.get(e.name)||b.set(e.name,new xM),n=new JT({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(n);var o,s=t.getRegionModel(e.name)||t,c=s.getModel(y),p=s.getModel(x),g=Pg(c),S=Pg(p),M=s.getModel(_),I=s.getModel(w);if(r){o=r.indexOfName(e.name);var T=r.getItemVisual(o,"color",!0);T&&(g.fill=T)}var A=function(t){return[t[0]*m[0]+v[0],t[1]*m[1]+v[1]]};f(e.geometries,function(t){if("polygon"===t.type){for(var e=[],i=0;i=0)&&(P=t);var E=new ET({position:A(e.center.slice()),scale:[1/h.scale[0],1/h.scale[1]],z2:10,silent:!0});if(Ua(E.style,E.hoverStyle={},M,I,{labelFetcher:P,labelDataIndex:O,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!d){var N=[1/l[0],1/l[1]];nr(E,{scale:N},t)}i.add(E)}if(r)r.setItemGraphicEl(o,i);else{var s=t.getRegionModel(e.name);n.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:s&&s.option||{}}}var z=i.__regions||(i.__regions=[]);z.push(e),i.highDownSilentOnTouch=!!t.get("selectedMode"),Fa(i,S),u.add(i)}),this._updateController(t,e,i),Og(this,t,u,i,n),Eg(t,u)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&yE.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&f(yE.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}var o=t.coordinateSystem,a=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=o.getZoom(),a.enable(t.get("roam")||!1);var l=t.mainType;a.off("pan").on("pan",function(t){this._mouseDownFlag=!1,np(s,t.dx,t.dy),i.dispatchAction(r(n(),{dx:t.dx,dy:t.dy}))},this),a.off("zoom").on("zoom",function(t){if(this._mouseDownFlag=!1,op(s,t.scale,t.originX,t.originY),i.dispatchAction(r(n(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])})}},this),a.setPointerChecker(function(e,n,a){return o.getViewRectAfterRoam().contain(n,a)&&!yp(e,i,t)})}};var _E="__seriesMapHighDown",wE="__seriesMapCallKey";Fu({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){var a=this._mapDraw;a&&o.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new Ng(i,!0);o.add(a.group),a.draw(t,e,i,this,n),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},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(t){var e=t.originalData,i=this.group;e.each(e.mapDimension("value"),function(n,o){if(!isNaN(n)){var a=e.getItemLayout(o);if(a&&a.point){var s=a.point,l=a.offset,u=new NT({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:8+(l?0:rA+1)});if(!l){var h=t.mainSeries.getData(),c=e.getName(o),d=h.indexOfName(c),f=e.getItemModel(o),p=f.getModel("label"),g=f.getModel("emphasis.label"),m=h.getItemGraphicEl(d),v=C(t.getFormattedLabel(d,"normal"),c),y=C(t.getFormattedLabel(d,"emphasis"),v),_=m[_E],w=Math.random();if(!_){_=m[_E]={};var b=x(zg,!0),S=x(zg,!1);m.on("mouseover",b).on("mouseout",S).on("emphasis",b).on("normal",S)}m[wE]=w,r(_,{recordVersion:w,circle:u,labelModel:p,hoverLabelModel:g,emphasisText:y,normalText:v}),Rg(_,!1)}i.add(u)}}})}}),ku({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var n=e.coordinateSystem;if("geo"===n.type){var o=Ip(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&f(e.seriesGroup,function(t){t.setCenter(o.center),t.setZoom(o.zoom)})}})}),Bg.prototype={constructor:Bg,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");return i},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],o=0;n>o;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[i+2*o],e[o][1]=this._flatCoords[i+2*o+1];return n}for(var a=this._getCoordsFromItemModel(t),o=0;ol;){s++;var u=t[l++];n[r++]=a+e,n[r++]=u;for(var h=0;u>h;h++){var c=t[l++],d=t[l++];if(o[a++]=c,o[a++]=d,l>i&&eS)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,r),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t){if(eS){var e=ks.get(t.coordinateSystem);if(!e)throw new Error("Unkown coordinate system "+t.coordinateSystem)}var i=new dL(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(t,e,n,o){if(t instanceof Array)return 0/0;i.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[o]:a:void 0}),i},formatTooltip:function(t){var e=this.getData(),i=e.getItemModel(t),n=i.get("name");if(n)return n;var o=i.get("fromName"),a=i.get("toName"),r=[];return null!=o&&r.push(o),null!=a&&r.push(a),Wr(r.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),LE=jT.prototype,kE=KT.prototype,PE=ya({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(t,e){this[Zg(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:LE.buildPath,_buildPathCurve:kE.buildPath,pointAt:function(t){return this[Zg(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:LE.pointAt,_pointAtCurve:kE.pointAt,tangentAt:function(t){var e=this.shape,i=Zg(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return te(i,i)},_tangentAtCurve:kE.tangentAt}),OE=["fromSymbol","toSymbol"],EE=Kg.prototype;EE.beforeUpdate=qg,EE._createLine=function(t,e,i){var n=t.hostModel,o=t.getItemLayout(e),a=Yg(o);a.shape.percent=0,or(a,{shape:{percent:1}},n,e),this.add(a);var r=new ET({name:"label",lineLabelOriginalOpacity:1});this.add(r),f(OE,function(i){var n=Xg(i,t,e);this.add(n),this[Ug(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},EE.updateData=function(t,e,i){var n=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(e),r={shape:{}};jg(r.shape,a),nr(o,r,n,e),f(OE,function(i){var n=t.getItemVisual(e,i),o=Ug(i);if(this[o]!==n){this.remove(this.childOfName(i));var a=Xg(i,t,e);this.add(a)}this[o]=n},this),this._updateCommonStl(t,e,i)},EE._updateCommonStl=function(t,e,i){var n=t.hostModel,o=this.childOfName("line"),a=i&&i.lineStyle,r=i&&i.hoverLineStyle,l=i&&i.labelModel,u=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var h=t.getItemModel(e);a=h.getModel("lineStyle").getLineStyle(),r=h.getModel("emphasis.lineStyle").getLineStyle(),l=h.getModel("label"),u=h.getModel("emphasis.label")}var c=t.getItemVisual(e,"color"),d=L(t.getItemVisual(e,"opacity"),a.opacity,1);o.useStyle(s({strokeNoScale:!0,fill:"none",stroke:c,opacity:d},a)),o.hoverStyle=r,f(OE,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:d}))},this);var p,g,m=l.getShallow("show"),v=u.getShallow("show"),y=this.childOfName("label");if((m||v)&&(p=c||"#000",g=n.getFormattedLabel(e,"normal",t.dataType),null==g)){var x=n.getRawValue(e);g=null==x?t.getName(e):isFinite(x)?Ir(x):x}var w=m?g:null,b=v?C(n.getFormattedLabel(e,"emphasis",t.dataType),g):null,S=y.style;if(null!=w||null!=b){Ya(y.style,l,{text:w},{autoColor:p}),y.__textAlign=S.textAlign,y.__verticalAlign=S.textVerticalAlign,y.__position=l.get("position")||"middle";var M=l.get("distance");_(M)||(M=[M,M]),y.__labelDistance=M}y.hoverStyle=null!=b?{text:b,textFill:u.getTextColor(!0),fontStyle:u.getShallow("fontStyle"),fontWeight:u.getShallow("fontWeight"),fontSize:u.getShallow("fontSize"),fontFamily:u.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,Fa(this)},EE.highlight=function(){this.trigger("emphasis")},EE.downplay=function(){this.trigger("normal")},EE.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},EE.setLinePoints=function(t){var e=this.childOfName("line");jg(e.shape,t),e.dirty()},h(Kg,xM);var NE=$g.prototype;NE.isPersistent=function(){return!0},NE.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var o=em(t);t.diff(n).add(function(i){Jg(e,t,i,o)}).update(function(i,a){Qg(e,n,t,a,i,o)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},NE.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},NE.incrementalPrepareUpdate=function(t){this._seriesScope=em(t),this._lineData=null,this.group.removeAll()},NE.incrementalUpdate=function(t,e){function i(t){t.isGroup||tm(t)||(t.incremental=t.useHoverLayer=!0)}for(var n=t.start;n0&&(r=this.getLineLength(n)/l*1e3),r!==this._period||s!==this._loop){n.stopAnimation();var c=u;h&&(c=u(i)),n.__t>0&&(c=-r*n.__t),n.__t=0;var d=n.animate("",s).when(r,{__t:1}).delay(c).during(function(){o.updateSymbolPosition(n)});s||d.done(function(){o.remove(n)}),d.start()}this._period=r,this._loop=s}},zE.getLineLength=function(t){return SS(t.__p1,t.__cp1)+SS(t.__cp1,t.__p2)},zE.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},zE.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},zE.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t,a=t.position,r=[a[0],a[1]],s=Oo,l=Eo;a[0]=s(e[0],n[0],i[0],o),a[1]=s(e[1],n[1],i[1],o);var u=l(e[0],n[0],i[0],o),h=l(e[1],n[1],i[1],o);if(t.rotation=-Math.atan2(h,u)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT=0&&!(n[a]<=e);a--);a=Math.min(a,o-2)}else{for(var a=r;o>a&&!(n[a]>e);a++);a=Math.min(a-1,o-2)}oe(t.position,i[a],i[a+1],(e-n[a])/(n[a+1]-n[a]));var l=i[a+1][0]-i[a][0],u=i[a+1][1]-i[a][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},h(rm,om);var VE=ya({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(var o=0;o0){t.moveTo(i[o++],i[o++]);for(var r=1;a>r;r++)t.lineTo(i[o++],i[o++])}}else for(var o=0;o0){var c=(s+u)/2-(l-h)*n,d=(l+h)/2-(u-s)*n;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(){var t=this.shape,e=t.segs,i=t.curveness;if(t.polyline)for(var n=0,o=0;o0)for(var r=e[o++],s=e[o++],l=1;a>l;l++){var u=e[o++],h=e[o++];if(Zo(r,s,u,h))return n}n++}else for(var n=0,o=0;o0){var c=(r+u)/2-(s-h)*i,d=(s+h)/2-(u-r)*i;if(Xo(r,s,c,d,u,h))return n}else if(Zo(r,s,u,h))return n;n++}return-1}}),GE=sm.prototype;GE.isPersistent=function(){return!this._incremental},GE.updateData=function(t){this.group.removeAll();var e=new VE({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},GE.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new va({silent:!0})),this.group.add(this._incremental)):this._incremental=null},GE.incrementalUpdate=function(t,e){var i=new VE;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},GE.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},GE._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=e.getVisual("color");o&&t.setStyle("stroke",o),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)}))},GE._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var FE={seriesType:"lines",plan:PD(),reset:function(t){function e(e,a){var r=[];if(o){var s,l=e.end-e.start;if(n){for(var u=0,h=e.start;hp;p++)d=i.dataToPoint(r[p],!1,d),s[c++]=d[0],s[c++]=d[1]}a.setLayout("linesPoints",s)}else for(var h=e.start;hv;v++)m.push(i.dataToPoint(r[v]));else{m[0]=i.dataToPoint(r[0]),m[1]=i.dataToPoint(r[1]);var y=g.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}a.setItemLayout(h,m)}}var i=t.coordinateSystem,n=t.get("polyline"),o=t.pipelineContext.large;return{progress:e}}};Fu({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),o=this._updateLineDraw(n,t),a=t.get("zlevel"),r=t.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();if(l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&r){if(eS){var u=!1;e.eachSeries(function(e){e!==t&&e.get("zlevel")===a&&(u=!0)}),u&&console.warn("Lines with trail effect should have an individual zlevel")}l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})}o.updateData(n);var h=t.get("clip",!0)&&Zc(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(t,e){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var a=FE.reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(t,e){var i=this._lineDraw,n=this._showEffect(e),o=!!e.get("polyline"),a=e.pipelineContext,r=a.large;return eS&&n&&r&&console.warn("Large lines not support effect"),i&&n===this._hasEffet&&o===this._isPolyline&&r===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=r?new sm:new $g(o?n?rm:am:n?om:Kg),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=r,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr(),i="svg"===e.painter.getType();i||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});var WE="lineStyle.opacity".split("."),HE={seriesType:"lines",reset:function(t){function e(t,e){var i=t.getItemModel(e),n=lm(i.getShallow("symbol",!0)),o=lm(i.getShallow("symbolSize",!0)),a=i.get(WE);n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1]),t.setItemVisual(e,"opacity",a)}var i=lm(t.get("symbol")),n=lm(t.get("symbolSize")),o=t.getData();return o.setVisual("fromSymbol",i&&i[0]),o.setVisual("toSymbol",i&&i[1]),o.setVisual("fromSymbolSize",n&&n[0]),o.setVisual("toSymbolSize",n&&n[1]),o.setVisual("opacity",t.get(WE)),{dataEach:o.hasItemOption?e:null}}};Eu(FE),Nu(HE);var ZE=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},UE=ZE.prototype;UE.type="graph",UE.isDirected=function(){return this._directed},UE.addNode=function(t,e){t=null==t?""+e:""+t;var i=this._nodesMap;if(i[um(t)])return void(eS&&console.error("Graph nodes have duplicate name or id"));var n=new hm(t,e);return n.hostGraph=this,this.nodes.push(n),i[um(t)]=n,n},UE.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},UE.getNodeById=function(t){return this._nodesMap[um(t)]},UE.addEdge=function(t,e,i){var n=this._nodesMap,o=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),hm.isInstance(t)||(t=n[um(t)]),hm.isInstance(e)||(e=n[um(e)]),t&&e){var a=t.id+"-"+e.id,r=new cm(t,e,i);return r.hostGraph=this,this._directed&&(t.outEdges.push(r),e.inEdges.push(r)),t.edges.push(r),t!==e&&e.edges.push(r),this.edges.push(r),o[a]=r,r}},UE.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},UE.getEdge=function(t,e){hm.isInstance(t)&&(t=t.id),hm.isInstance(e)&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},UE.eachNode=function(t,e){for(var i=this.nodes,n=i.length,o=0;n>o;o++)i[o].dataIndex>=0&&t.call(e,i[o],o)},UE.eachEdge=function(t,e){for(var i=this.edges,n=i.length,o=0;n>o;o++)i[o].dataIndex>=0&&i[o].node1.dataIndex>=0&&i[o].node2.dataIndex>=0&&t.call(e,i[o],o)},UE.breadthFirstTraverse=function(t,e,i,n){if(hm.isInstance(e)||(e=this._nodesMap[um(e)]),e){for(var o="out"===i?"outEdges":"in"===i?"inEdges":"edges",a=0;ao;o++)i[o].dataIndex=-1;for(var o=0,a=t.count();a>o;o++)i[t.getRawIndex(o)].dataIndex=o;e.filterSelf(function(t){var i=n[e.getRawIndex(t)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0});for(var o=0,a=n.length;a>o;o++)n[o].dataIndex=-1;for(var o=0,a=e.count();a>o;o++)n[e.getRawIndex(o)].dataIndex=o},UE.clone=function(){for(var t=new ZE(this._directed),e=this.nodes,i=this.edges,n=0;n=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};c(hm,XE("hostGraph","data")),c(cm,XE("hostGraph","edgeData")),ZE.Node=hm,ZE.Edge=cm,wo(hm),wo(cm);var YE=function(t,e,i,n,o){for(var a=new ZE(n),r=0;r "+f)),h++)}var p,g=i.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=bh(t,i);else{var m=ks.get(g),v=m&&"view"!==m.type?m.dimensions||[]:[];u(v,"value")<0&&v.concat(["value"]);var y=gL(t,{coordDimensions:v});p=new dL(y,i),p.initData(t)}var x=new dL(["value"],i);return x.initData(l,s),o&&o(p,x),kf({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a},jE="-->",qE=function(t){return t.get("autoCurveness")||null},KE=function(t,e){var i=qE(t),n=20,o=[];if("number"==typeof i)n=i;else if(_(i))return void(t.__curvenessList=i);e>n&&(n=e);var a=n%2?n+2:n+3;o=[];for(var r=0;a>r;r++)o.push((r%2?r+1:r)/10*(r%2?-1:1));t.__curvenessList=o},$E=function(t,e,i){var n=[t.id,t.dataIndex].join("."),o=[e.id,e.dataIndex].join(".");return[i.uid,n,o].join(jE)},JE=function(t){var e=t.split(jE);return[e[0],e[2],e[1]].join(jE)},QE=function(t,e){var i=$E(t.node1,t.node2,e);return e.__edgeMap[i]},tN=function(t,e){var i=eN($E(t.node1,t.node2,e),e),n=eN($E(t.node2,t.node1,e),e);return i+n},eN=function(t,e){var i=e.__edgeMap;return i[t]?i[t].length:0},iN=Gu({type:"series.graph",init:function(t){function e(){return i._categoriesData}iN.superApply(this,"init",arguments);var i=this;this.legendVisualProvider=new tf(e,e),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){iN.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){iN.superApply(this,"mergeDefaultAndTheme",arguments),eo(t,["edgeLabel"],["show"])},getInitialData:function(t,e){function i(t,i){function n(t){return t=this.parsePath(t),t&&"label"===t[0]?r:t&&"emphasis"===t[0]&&"label"===t[1]?l:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=a._categoriesModels,i=t.getShallow("category"),n=e[i];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t});var o=a.getModel("edgeLabel"),r=new mr({label:o.option},o.parentModel,e),s=a.getModel("emphasis.edgeLabel"),l=new mr({emphasis:{label:s.option}},s.parentModel,e);i.wrapMethod("getItemModel",function(t){return t.customizeGetParent(n),t})}var n=t.edges||t.links||[],o=t.data||t.nodes||[],a=this;if(o&&n){dm(this);var r=YE(o,n,this,!0,i);return f(r.edges,function(t){fm(t.node1,t.node2,this,t.dataIndex)},this),r.data}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),o=this.getDataParams(t,i),a=n.graph.getEdgeByIndex(t),r=n.getName(a.node1.dataIndex),s=n.getName(a.node2.dataIndex),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),l=Wr(l.join(" > ")),o.value&&(l+=" : "+Wr(o.value)),l}return iN.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=p(this.option.categories||[],function(t){return null!=t.value?t:r({value:0},t)}),e=new dL(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return iN.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),nN=[],oN=[],aN=[],rN=Oo,sN=MS,lN=Math.abs,uN=function(t,e){var i=[],n=Ro,o=[[],[],[]],a=[[],[]],r=[];e/=2,t.eachEdge(function(t){var s=t.getLayout(),l=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");s.__original||(s.__original=[H(s[0]),H(s[1])],s[2]&&s.__original.push(H(s[2])));var h=s.__original;if(null!=s[2]){if(W(o[0],h[0]),W(o[1],h[2]),W(o[2],h[1]),l&&"none"!==l){var c=mm(t.node1),d=vm(o,h[0],c*e);n(o[0][0],o[1][0],o[2][0],d,i),o[0][0]=i[3],o[1][0]=i[4],n(o[0][1],o[1][1],o[2][1],d,i),o[0][1]=i[3],o[1][1]=i[4]}if(u&&"none"!==u){var c=mm(t.node2),d=vm(o,h[1],c*e);n(o[0][0],o[1][0],o[2][0],d,i),o[1][0]=i[1],o[2][0]=i[2],n(o[0][1],o[1][1],o[2][1],d,i),o[1][1]=i[1],o[2][1]=i[2]}W(s[0],o[0]),W(s[1],o[2]),W(s[2],o[1])}else{if(W(a[0],h[0]),W(a[1],h[1]),Y(r,a[1],a[0]),te(r,r),l&&"none"!==l){var c=mm(t.node1);X(a[0],a[0],r,c*e)}if(u&&"none"!==u){var c=mm(t.node2);X(a[1],a[1],r,-c*e)}W(s[0],a[0]),W(s[1],a[1])}})},hN="__focusNodeAdjacency",cN="__unfocusNodeAdjacency",dN=["itemStyle","opacity"],fN=["lineStyle","opacity"];Fu({type:"graph",init:function(t,e){var i=new Pd,n=new $g,o=this.group;this._controller=new up(e.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=this,o=t.coordinateSystem;this._model=t;var a=this._symbolDraw,r=this._lineDraw,s=this.group;if("view"===o.type){var l={position:o.position,scale:o.scale};this._firstRender?s.attr(l):nr(s,l,t)}uN(t.getGraph(),gm(t));var u=t.getData();a.updateData(u);var h=t.getEdgeData();r.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var c=t.forceLayout,d=t.get("force.layoutAnimation");c&&this._startForceLayoutIteration(c,d),u.eachItemGraphicEl(function(e,o){var a=u.getItemModel(o);e.off("drag").off("dragend");var r=a.get("draggable");r&&e.on("drag",function(){c&&(c.warmUp(),!this._layouting&&this._startForceLayoutIteration(c,d),c.setFixed(o),u.setItemLayout(o,e.position))},this).on("dragend",function(){c&&c.setUnfixed(o)},this),e.setDraggable(r&&c),e[hN]&&e.off("mouseover",e[hN]),e[cN]&&e.off("mouseout",e[cN]),a.get("focusNodeAdjacency")&&(e.on("mouseover",e[hN]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[cN]=function(){n._dispatchUnfocus(i)}))},this),u.graph.eachEdge(function(e){var o=e.getGraphicEl();o[hN]&&o.off("mouseover",o[hN]),o[cN]&&o.off("mouseout",o[cN]),e.getModel().get("focusNodeAdjacency")&&(o.on("mouseover",o[hN]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),o.on("mouseout",o[cN]=function(){n._dispatchUnfocus(i)}))});var f="circular"===t.get("layout")&&t.get("circular.rotateLabel"),p=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl(function(t,e){var i=u.getItemModel(e),n=i.get("label.rotate")||0,o=t.getSymbolPath();if(f){var a=u.getItemLayout(e),r=Math.atan2(a[1]-g,a[0]-p);0>r&&(r=2*Math.PI+r);var s=a[0]e&&(e=0),e*=u;var i=Math.asin(e/2/o);isNaN(i)&&(i=xN/2),_N[t.dataIndex]=i,l+=2*i});var h=(2*xN-l)/s/2,c=0;i.eachNode(function(t){var e=h+_N[t.dataIndex];c+=e,t.setLayout([o*Math.cos(c)+a,o*Math.sin(c)+r]),c+=e})}},bN=function(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&Mm(t,"symbolSize")})},SN=X,MN=function(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},n=t.getGraph(),o=n.data,a=n.edgeData,r=t.getModel("force"),s=r.get("initLayout");t.preservedPoints?o.each(function(t){var e=o.getId(t);o.setItemLayout(t,i[e]||[0/0,0/0])}):s&&"none"!==s?"circular"===s&&Mm(t,"value"):bm(t);var l=o.getDataExtent("value"),u=a.getDataExtent("value"),h=r.get("repulsion"),c=r.get("edgeLength");_(h)||(h=[h,h]),_(c)||(c=[c,c]),c=[c[1],c[0]];var d=o.mapArray("value",function(t,e){var i=o.getItemLayout(e),n=Sr(t,l,h);return isNaN(n)&&(n=(h[0]+h[1])/2),{w:n,rep:n,fixed:o.getItemModel(e).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}}),f=a.mapArray("value",function(e,i){var o=n.getEdgeByIndex(i),a=Sr(e,u,c);isNaN(a)&&(a=(c[0]+c[1])/2);var r=o.getModel(),s=L(r.get("lineStyle.curveness"),-pm(o,t,i,!0),0);return{n1:d[o.node1.dataIndex],n2:d[o.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:r.get("ignoreForceLayout")}}),e=t.coordinateSystem,p=e.getBoundingRect(),g=Im(d,f,{rect:p,gravity:r.get("gravity"),friction:r.get("friction")}),m=g.step;g.step=function(t){for(var e=0,a=d.length;a>e;e++)d[e].fixed&&W(d[e].p,n.getNodeByIndex(e).getLayout());m(function(e,a,r){for(var s=0,l=e.length;l>s;s++)e[s].fixed||n.getNodeByIndex(s).setLayout(e[s].p),i[o.getId(s)]=e[s].p;for(var s=0,l=a.length;l>s;s++){var u=a[s],h=n.getEdgeByIndex(s),c=u.n1.p,d=u.n2.p,f=h.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],W(f[0],c),W(f[1],d),+u.curveness&&(f[2]=[(c[0]+d[0])/2-(c[1]-d[1])*u.curveness,(c[1]+d[1])/2-(d[0]-c[0])*u.curveness]),h.setLayout(f)}t&&t(r)})},t.forceLayout=g,t.preservedPoints=i,g.step()}else t.forceLayout=null})},IN=function(t,e){var i=[];return t.eachSeriesByType("graph",function(t){var n=t.get("coordinateSystem");if(!n||"view"===n){var o=t.getData(),a=o.mapArray(function(t){var e=o.getItemModel(t);return[+e.get("x"),+e.get("y")]}),r=[],s=[];Vo(a,r,s),s[0]-r[0]===0&&(s[0]+=1,r[0]-=1),s[1]-r[1]===0&&(s[1]+=1,r[1]-=1);var l=(s[0]-r[0])/(s[1]-r[1]),u=Tm(t,e,l);isNaN(l)&&(r=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var h=s[0]-r[0],c=s[1]-r[1],d=u.width,f=u.height,p=t.coordinateSystem=new ep;p.zoomLimit=t.get("scaleLimit"),p.setBoundingRect(r[0],r[1],h,c),p.setViewRect(u.x,u.y,d,f),p.setCenter(t.get("center")),p.setZoom(t.get("zoom")),i.push(p)}}),i};Cu(gN),Nu(hP("graph","circle",null)),Nu(mN),Nu(vN),Eu(yN),Eu(OC.VISUAL.POST_CHART_LAYOUT,bN),Eu(MN),Pu("graphView",{create:IN});var TN=CD.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});c(TN,PP,!0);var AN=["itemStyle"],DN=["emphasis","itemStyle"],CN=(vl.extend({type:"boxplot",render:function(t){var e=t.getData(),i=this.group,n=this._data;this._data||i.removeAll();var o="horizontal"===t.get("layout")?1:0;e.diff(n).add(function(t){if(e.hasValue(t)){var n=e.getItemLayout(t),a=Am(n,e,t,o,!0);e.setItemGraphicEl(t,a),i.add(a)}}).update(function(t,a){var r=n.getItemGraphicEl(a);if(!e.hasValue(t))return void i.remove(r);var s=e.getItemLayout(t);r?Dm(s,r,e,t):r=Am(s,e,t,o),i.add(r),e.setItemGraphicEl(t,r)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},remove:function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},dispose:G}),oa.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;4>n;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();na&&(e[1-n]=e[n]+c.sign*a),e},RN=f,BN=Math.min,VN=Math.max,GN=Math.floor,FN=Math.ceil,WN=Ir,HN=Math.PI;Rm.prototype={type:"parallel",constructor:Rm,_init:function(t,e){var i=t.dimensions,n=t.parallelAxisIndex;RN(i,function(t,i){var o=n[i],a=e.getComponent("parallelAxis",o),r=this._axesMap.set(t,new NN(t,qh(a),[0,0],a.get("type"),o)),s="category"===r.type;r.onBand=s&&a.get("boundaryGap"),r.inverse=a.get("inverse"),a.axis=r,r.model=a,r.coordinateSystem=a.coordinateSystem=this},this)},update:function(t){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],r=t[o];return a>=i&&a<=i+e.axisLength&&r>=n&&r<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();RN(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),jh(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=ts(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],o=["width","height"],a=e.get("layout"),r="horizontal"===a?0:1,s=i[o[r]],l=[0,s],u=this.dimensions.length,h=Bm(e.get("axisExpandWidth"),l),c=Bm(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");if(f)t=Bm(f[1]-f[0],l),f[1]=f[0]+t;else{t=Bm(h*(c-1),l);var p=e.get("axisExpandCenter")||GN(u/2);f=[h*p-t/2],f[1]=f[0]+t}var g=(s-t)/(u-c);3>g&&(g=0);var m=[GN(WN(f[0]/h,1))+1,FN(WN(f[1]/h,1))-1],v=g/h*f[0];return{layout:a,pixelDimIndex:r,layoutBase:i[n[r]],layoutLength:s,axisBase:i[n[1-r]],axisLength:i[o[1-r]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),o=n.layout;e.each(function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])}),RN(i,function(e,i){var a=(n.axisExpandable?Gm:Vm)(i,n),r={horizontal:{x:a.position,y:n.axisLength},vertical:{x:0,y:a.position}},s={horizontal:HN/2,vertical:0},l=[r[o].x+t.x,r[o].y+t.y],u=s[o],h=Oe();Be(h,h,u),Re(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,n){null==i&&(i=0),null==n&&(n=t.count());var o=this._axesMap,a=this.dimensions,r=[],s=[];f(a,function(e){r.push(t.mapDimension(e)),s.push(o.get(e).model)});for(var l=this.hasAxisBrushed(),u=i;n>u;u++){var h;if(l){h="active";for(var c=t.getValues(r,u),d=0,p=a.length;p>d;d++){var g=s[d].getActiveState(c[d]);if("inactive"===g){h="inactive";break}}}else h="normal";e(h,u)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,o=t.length;o>n;n++)"normal"!==e.get(t[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(t,e){var i=this._axesLayout[e];return rr([t,0],i.transform)},getAxisLayout:function(t){return n(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),o=n[1]-n[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n}; +var r,s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=null!=h[0];if(u)c&&u&&so*(1-h[0])?(l="jump",r=s-o*(1-h[2])):(r=s-o*h[1])>=0&&(r=s-o*(1-h[1]))<=0&&(r=0),r*=e.axisExpandWidth/u,r?zN(r,n,a,"all"):l="none";else{var o=n[1]-n[0],d=a[1]*s/o;n=[VN(0,d-o/2)],n[1]=BN(a[1],n[0]+o),n[0]=n[1]-o}return{axisExpandWindow:n,behavior:l}}},ks.register("parallel",{create:Fm});var ZN=WA.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return AI([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=n(t);if(e)for(var i=e.length-1;i>=0;i--)Tr(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=e.length;o>n;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),UN={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};o(ZN.prototype,XL),mk("parallel",ZN,Wm,UN),WA.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){WA.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&o(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){f(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=m(this.dependentModels.parallelAxis,function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);f(i,function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)})}});var XN={type:"axisAreaSelect",event:"axisAreaSelected"};ku(XN,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),ku("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})});var YN=x,jN=f,qN=p,KN=Math.min,$N=Math.max,JN=Math.pow,QN=1e4,tz=6,ez=6,iz="globalPan",nz={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},oz={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},az={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},rz=0;Hm.prototype={constructor:Hm,enableBrush:function(t){return eS&&O(this._mounted),this._brushType&&Um(this),t.brushType&&Zm(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};f(t,function(t){e[t.panelId]=n(t)})}else this._panels=null;return this},mount:function(t){t=t||{},eS&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){jN(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:s+e)+"-"+t.brushType}function i(t,i){return e(t.__brushOption,i)}function a(e,i){var n=t[e];if(null!=i&&l[i]===c)u[e]=l[i];else{var o=u[e]=null!=i?(l[i].__brushOption=n,l[i]):qm(h,jm(h,n));Jm(h,o)}}function r(t){l[t]!==c&&h.group.remove(l[t])}eS&&O(this._mounted),t=p(t,function(t){return o(n(az),t,!0)});var s="\x00-brush-index-",l=this._covers,u=this._covers=[],h=this,c=this._creatingCover;return new Xu(l,t,i,e).add(a).update(a).remove(r).execute(),this},unmount:function(){return!eS||this._mounted?(this.enableBrush(!1),iv(this),this._zr.remove(this.group),eS&&(this._mounted=!1),this):void 0},dispose:function(){this.unmount(),this.off()}},c(Hm,AS);var sz={mousedown:function(t){if(this._dragging)Mv(this,t);else if(!t.target||!t.target.draggable){_v(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var i=this._creatingPanel=tv(this,t,e);i&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,i=t.offsetY,n=this.group.transformCoordToLocal(e,i);if(xv(this,t,n),this._dragging){_v(t);var o=bv(this,t,n,!1);o&&nv(this,o)}},mouseup:function(t){Mv(this,t)}},lz={lineX:Tv(0),lineY:Tv(1),rect:{createCover:function(t,e){return rv(YN(pv,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=av(t);return cv(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){sv(t,e,i,n)},updateCommon:lv,contain:wv},polygon:{createCover:function(t,e){var i=new xM;return i.add(new HT({name:"main",style:hv(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new WT({name:"main",draggable:!0,drift:YN(gv,t,e),ondragend:YN(nv,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i){e.childAt(0).setShape({points:vv(t,e,i)})},updateCommon:lv,contain:wv}},uz=["axisLine","axisTickLabel","axisName"],hz=Vu({type:"parallelAxis",init:function(t,e){hz.superApply(this,"init",arguments),(this._brushController=new Hm(e.getZr())).on("brush",y(this._onBrush,this))},render:function(t,e,i,n){if(!kv(t,e,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xM,this.group.add(this._axisGroup),t.get("show")){var a=Ov(t,e),s=a.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,h=t.axis.dim,c=s.getAxisLayout(h),d=r({strokeContainThreshold:u},c),p=new Nk(t,d);f(uz,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,l,t,a,u,i);var g=n&&n.animation===!1?null:t;lr(o,this._axisGroup,g)}}},_refreshBrushController:function(t,e,i,n,o,a){var r=i.axis.getExtent(),s=r[1]-r[0],l=Math.min(30,.1*Math.abs(s)),u=Ti.create({x:r[0],y:-o/2,width:s,height:o});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:Av(u),isTargetByCursor:Cv(u,a,n),getLinearBrushOtherExtent:Dv(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(Pv(i))},_onBrush:function(t,e){var i=this.axisModel,n=i.axis,o=p(t,function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},dispose:function(){this._brushController.dispose()}}),cz=5;Vu({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},f(dz,function(t,e){i.getZr().on(e,this._handlers[e]=y(t,this))},this)),Sl(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){f(this._handlers,function(t,i){e.getZr().off(i,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(r({type:"parallelAxisExpand"},t))}});var dz={mousedown:function(t){Ev(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Ev(this,"click")&&e){var i=[t.offsetX,t.offsetY],n=Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2);if(n>cz)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Ev(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n?null:!1})}}};Du(EN),CD.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(){var t=this.getSource();return Nv(t,this),bh(t,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,function(e,o){t===e&&n.push(i.getRawIndex(o))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});var fz=.3,pz=(vl.extend({type:"parallel",init:function(){this._dataGroup=new xM,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,n){function o(t){var e=Vv(l,s,t,c,h);Fv(e,l,t,d)}function a(e,i){var o=u.getItemGraphicEl(i),a=Bv(l,e,c,h);l.setItemGraphicEl(e,o);var r=n&&n.animation===!1?null:t;nr(o,{shape:{points:a}},r,e),Fv(o,l,e,d)}function r(t){var e=u.getItemGraphicEl(t);s.remove(e)}var s=this._dataGroup,l=t.getData(),u=this._data,h=t.coordinateSystem,c=h.dimensions,d=Gv(t);if(l.diff(u).add(o).update(a).remove(r).execute(),!this._initialized){this._initialized=!0;var f=Rv(h,t,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(f)}this._data=l},incrementalPrepareRender:function(){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e){for(var i=e.getData(),n=e.coordinateSystem,o=n.dimensions,a=Gv(e),r=t.start;r=o/3?1:2),l=e.y-n(r)*a*(a>=o/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(r)*a,e.y+n(r)*a),t.lineTo(e.x+i(e.angle)*o,e.y+n(e.angle)*o),t.lineTo(e.x-i(r)*a,e.y-n(r)*a),t.lineTo(s,l)}})),vz=2*Math.PI,yz=(vl.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),o=Hv(t,i);this._renderMain(t,e,i,n,o)},dispose:function(){},_renderMain:function(t,e,i,n,o){for(var a=this.group,r=t.getModel("axisLine"),s=r.getModel("lineStyle"),l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,c=(h-u)%vz,d=u,f=s.get("width"),p=r.get("show"),g=0;p&&g=t)return n[0][1];for(var e=0;e=t&&(0===e?0:n[e-1][0])=I;I++){var T=Math.cos(_),A=Math.sin(_);if(f.get("show")){var D=new jT({shape:{x1:T*h+l,y1:A*h+u,x2:T*(h-y)+l,y2:A*(h-y)+u},style:S,silent:!0});"auto"===S.stroke&&D.setStyle({stroke:n(I/m)}),s.add(D)}if(g.get("show")){var C=Zv(Ir(I/m*(d-c)+c),g.get("formatter")),L=g.get("distance"),k=n(I/m);s.add(new ET({style:Ya({},g,{text:C,x:T*(h-y-L)+l,y:A*(h-y-L)+u,textVerticalAlign:-.4>A?"top":A>.4?"bottom":"middle",textAlign:-.4>T?"left":T>.4?"right":"center"},{autoColor:k}),silent:!0}))}if(p.get("show")&&I!==m){for(var P=0;v>=P;P++){var T=Math.cos(_),A=Math.sin(_),O=new jT({shape:{x1:T*h+l,y1:A*h+u,x2:T*(h-x)+l,y2:A*(h-x)+u},silent:!0,style:M});"auto"===M.stroke&&O.setStyle({stroke:n((I+P/v)/m)}),s.add(O),_+=b}_-=b}else _+=w}},_renderPointer:function(t,e,i,n,o,a,r){var s=this.group,l=this._data;if(!t.get("pointer.show"))return void(l&&l.eachItemGraphicEl(function(t){s.remove(t)}));var u=[+t.get("min"),+t.get("max")],h=[a,r],c=t.getData(),d=c.mapDimension("value");c.diff(l).add(function(e){var i=new mz({shape:{angle:a}});or(i,{shape:{angle:Sr(c.get(d,e),u,h,!0)}},t),s.add(i),c.setItemGraphicEl(e,i)}).update(function(e,i){var n=l.getItemGraphicEl(i);nr(n,{shape:{angle:Sr(c.get(d,e),u,h,!0)}},t),s.add(n),c.setItemGraphicEl(e,n)}).remove(function(t){var e=l.getItemGraphicEl(t);s.remove(e)}).execute(),c.eachItemGraphicEl(function(t,e){var i=c.getItemModel(e),a=i.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:Mr(a.get("width"),o.r),r:Mr(a.get("length"),o.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(Sr(c.get(d,e),u,[0,1],!0))),Fa(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=c},_renderTitle:function(t,e,i,n,o){var a=t.getData(),r=a.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=o.cx+Mr(l[0],o.r),h=o.cy+Mr(l[1],o.r),c=+t.get("min"),d=+t.get("max"),f=t.getData().get(r,0),p=n(Sr(f,[c,d],[0,1],!0));this.group.add(new ET({silent:!0,style:Ya({},s,{x:u,y:h,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:p,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,o){var a=t.getModel("detail"),r=+t.get("min"),s=+t.get("max");if(a.get("show")){var l=a.get("offsetCenter"),u=o.cx+Mr(l[0],o.r),h=o.cy+Mr(l[1],o.r),c=Mr(a.get("width"),o.r),d=Mr(a.get("height"),o.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=n(Sr(p,[r,s],[0,1],!0));this.group.add(new ET({silent:!0,style:Ya({},a,{x:u,y:h,text:Zv(p,a.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),Gu({type:"series.funnel",init:function(t){yz.superApply(this,"init",arguments),this.legendVisualProvider=new tf(y(this.getData,this),y(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(){return gP(this,{coordDimensions:["value"],encodeDefaulter:x(ys,this)})},_defaultLabelLine:function(t){eo(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=yz.superCall(this,"getDataParams",t),n=e.mapDimension("value"),o=e.getSum(n);return i.percent=o?+(e.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}})),xz=Uv.prototype,_z=["itemStyle","opacity"];xz.updateData=function(t,e,i){var n=this.childAt(0),o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e),l=t.getItemModel(e).get(_z);l=null==l?1:l,n.useStyle({}),i?(n.setShape({points:r.points}),n.setStyle({opacity:0}),or(n,{style:{opacity:l}},o,e)):nr(n,{style:{opacity:l},shape:{points:r.points}},o,e);var u=a.getModel("itemStyle"),h=t.getItemVisual(e,"color");n.setStyle(s({lineJoin:"round",fill:h},u.getItemStyle(["opacity"]))),n.hoverStyle=u.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),Fa(this)},xz._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e),s=r.label,l=t.getItemVisual(e,"color");nr(i,{shape:{points:s.linePoints||s.linePoints}},o,e),nr(n,{style:{x:s.x,y:s.y}},o,e),n.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),c=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine"),l=t.getItemVisual(e,"color");Ua(n.style,n.hoverStyle={},u,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:l}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=d.getModel("lineStyle").getLineStyle()},h(Uv,xM);var wz=(vl.extend({type:"funnel",render:function(t){var e=t.getData(),i=this._data,n=this.group;e.diff(i).add(function(t){var i=new Uv(e,t);e.setItemGraphicEl(t,i),n.add(i)}).update(function(t,o){var a=i.getItemGraphicEl(o);a.updateData(e,t),n.add(a),e.setItemGraphicEl(t,a)}).remove(function(t){var e=i.getItemGraphicEl(t);n.remove(e)}).execute(),this._data=e},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),function(t,e){t.eachSeriesByType("funnel",function(t){var i=t.getData(),n=i.mapDimension("value"),o=t.get("sort"),a=Xv(t,e),r=Yv(i,o),s=t.get("orient"),l=a.width,u=a.height,h=a.x,c=a.y,d="horizontal"===s?[Mr(t.get("minSize"),u),Mr(t.get("maxSize"),u)]:[Mr(t.get("minSize"),l),Mr(t.get("maxSize"),l)],f=i.getDataExtent(n),p=t.get("min"),g=t.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y="horizontal"===s?l:u,x=(y-v*(i.count()-1))/i.count(),_=function(t,e){if("horizontal"===s){var o,a=i.get(n,t)||0,r=Sr(a,[p,g],d,!0);switch(m){case"top":o=c;break;case"center":o=c+(u-r)/2;break;case"bottom":o=c+(u-r)}return[[e,o],[e,o+r]]}var f,a=i.get(n,t)||0,v=Sr(a,[p,g],d,!0);switch(m){case"left":f=h;break;case"center":f=h+(l-v)/2;break;case"right":f=h+l-v}return[[f,e],[f+v,e]]};"ascending"===o&&(x=-x,v=-v,"horizontal"===s?h+=l:c+=u,r=r.reverse());for(var w=0;w=0)r[a[s].depth]=new mr(a[s],this,e);else if(eS)throw new Error("levels[i].depth is mandatory and should be natural number");if(o&&n){var l=YE(o,n,this,!0,i);return l.data}},setNodePosition:function(t,e){var i=this.option.data[t];i.localX=e[0],i.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getDataParams(t,i),o=n.data,a=o.source+" -- "+o.target;return n.value&&(a+=" : "+n.value),Wr(a)}if("node"===i){var r=this.getGraph().getNodeByIndex(t),s=r.getLayout().value,l=this.getDataParams(t,i).data.name;if(s)var a=l+" : "+s;return Wr(a)}return bz.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;t.focusNodeAdjacency===!0&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var i=bz.superCall(this,"getDataParams",t,e);if(null==i.value&&"node"===e){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}return i},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),Sz=["itemStyle","opacity"],Mz=["emphasis","itemStyle","opacity"],Iz=["lineStyle","opacity"],Tz=["emphasis","lineStyle","opacity"],Az=ya({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var i=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+i,e.y2),t.bezierCurveTo(e.cpx2+i,e.cpy2,e.cpx1+i,e.cpy1,e.x1+i,e.y1)):(t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}});Fu({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,i){var n=this,o=t.getGraph(),a=this.group,r=t.layoutInfo,s=r.width,l=r.height,u=t.getData(),h=t.getData("edge"),c=t.get("orient");this._model=t,a.removeAll(),a.attr("position",[r.x,r.y]),o.eachEdge(function(e){var i=new Az;i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var n,o,r,u,d,f,p,g,m=e.getModel("lineStyle"),v=m.get("curveness"),y=e.node1.getLayout(),x=e.node1.getModel(),_=x.get("localX"),w=x.get("localY"),b=e.node2.getLayout(),S=e.node2.getModel(),M=S.get("localX"),I=S.get("localY"),T=e.getLayout();switch(i.shape.extent=Math.max(1,T.dy),i.shape.orient=c,"vertical"===c?(n=(null!=_?_*s:y.x)+T.sy,o=(null!=w?w*l:y.y)+y.dy,r=(null!=M?M*s:b.x)+T.ty,u=null!=I?I*l:b.y,d=n,f=o*(1-v)+u*v,p=r,g=o*v+u*(1-v)):(n=(null!=_?_*s:y.x)+y.dx,o=(null!=w?w*l:y.y)+T.sy,r=null!=M?M*s:b.x,u=(null!=I?I*l:b.y)+T.ty,d=n*(1-v)+r*v,f=o,p=n*v+r*(1-v),g=u),i.setShape({x1:n,y1:o,x2:r,y2:u,cpx1:d,cpy1:f,cpx2:p,cpy2:g}),i.setStyle(m.getItemStyle()),i.style.fill){case"source":i.style.fill=e.node1.getVisual("color");break;case"target":i.style.fill=e.node2.getVisual("color")}Fa(i,e.getModel("emphasis.lineStyle").getItemStyle()),a.add(i),h.setItemGraphicEl(e.dataIndex,i)}),o.eachNode(function(e){var i=e.getLayout(),n=e.getModel(),o=n.get("localX"),r=n.get("localY"),h=n.getModel("label"),c=n.getModel("emphasis.label"),d=new XT({shape:{x:null!=o?o*s:i.x,y:null!=r?r*l:i.y,width:i.dx,height:i.dy},style:n.getModel("itemStyle").getItemStyle()}),f=e.getModel("emphasis.itemStyle").getItemStyle();Ua(d.style,f,h,c,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),d.setStyle("fill",e.getVisual("color")),Fa(d,f),a.add(d),u.setItemGraphicEl(e.dataIndex,d),d.dataType="node"}),u.eachItemGraphicEl(function(e,o){var a=u.getItemModel(o);a.get("draggable")&&(e.drift=function(e,a){n._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(o),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){n._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){n._focusAdjacencyDisabled||(n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){n._focusAdjacencyDisabled||n._dispatchUnfocus(i)}))}),h.eachItemGraphicEl(function(e,o){var a=h.getItemModel(o);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){n._focusAdjacencyDisabled||(n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){n._focusAdjacencyDisabled||n._dispatchUnfocus(i)}))}),!this._data&&t.get("animation")&&a.setClipPath(Jv(a.getBoundingRect(),t,function(){a.removeClipPath()})),this._data=t.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,i,n){var o=t.getData(),a=o.graph,r=n.dataIndex,s=o.getItemModel(r),l=n.edgeDataIndex;if(null!=r||null!=l){var u=a.getNodeByIndex(r),h=a.getEdgeByIndex(l);if(a.eachNode(function(t){Kv(t,Sz,.1)}),a.eachEdge(function(t){Kv(t,Iz,.1)}),u){$v(u,Mz);var c=s.get("focusNodeAdjacency");"outEdges"===c?f(u.outEdges,function(t){t.dataIndex<0||($v(t,Tz),$v(t.node2,Mz))}):"inEdges"===c?f(u.inEdges,function(t){t.dataIndex<0||($v(t,Tz),$v(t.node1,Mz))}):"allEdges"===c&&f(u.edges,function(t){t.dataIndex<0||($v(t,Tz),t.node1!==u&&$v(t.node1,Mz),t.node2!==u&&$v(t.node2,Mz))})}h&&($v(h,Tz),$v(h.node1,Mz),$v(h.node2,Mz))}},unfocusNodeAdjacency:function(t){var e=t.getGraph();e.eachNode(function(t){Kv(t,Sz)}),e.eachEdge(function(t){Kv(t,Iz)})}}),ku({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})});var Dz=function(t,e){t.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),o=Qv(t,e);t.layoutInfo=o;var a=o.width,r=o.height,s=t.getGraph(),l=s.nodes,u=s.edges;ey(l);var h=m(l,function(t){return 0===t.getLayout().value}),c=0!==h.length?0:t.get("layoutIterations"),d=t.get("orient"),f=t.get("nodeAlign");ty(l,u,i,n,a,r,c,d,f)})},Cz=function(t){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),i=e.nodes;if(i.length){var n=1/0,o=-1/0;f(i,function(t){var e=t.getLayout().value;n>e&&(n=e),e>o&&(o=e)}),f(i,function(e){var i=new kO({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:t.get("color")}),a=i.mapValueToVisual(e.getLayout().value),r=e.getModel().get("itemStyle.color");null!=r?e.setVisual("color",r):e.setVisual("color",a)})}})};Eu(Dz),Nu(Cz);var Lz=function(t,e,i,n,o){sk.call(this,t,e,i),this.type=n||"value",this.position=o||"bottom",this.orient=null};Lz.prototype={constructor:Lz,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},h(Lz,sk),wy.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:wy,_init:function(t){var e=this.dimension,i=new Lz(e,qh(t),[0,0],t.get("type"),t.get("position")),n="category"===i.type;i.onBand=n&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},update:function(t){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();f(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),jh(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=ts({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(n[o],n[1-o]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],o=t.isHorizontal();t.toGlobalCoord=o?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=o?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[o]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-o]=0===o?i.y+i.height/2:i.x+i.width/2,n}},ks.register("single",{create:by,dimensions:wy.prototype.dimensions});var kz=["axisLine","axisTickLabel","axisName"],Pz=["splitArea","splitLine"],Oz=Wk.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new xM;var r=Sy(t),s=new Nk(t,r);f(kz,s.add,s),o.add(this._axisGroup),o.add(s.getGroup()),f(Pz,function(e){t.get(e+".show")&&this["_"+e](t)},this),lr(a,this._axisGroup,t),Oz.superCall(this,"render",t,e,i,n)},remove:function(){Ad(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),o=n.get("width"),a=n.get("color");a=a instanceof Array?a:[a];for(var r=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:i}),c=[],d=[],f=0;fr||_(r))return{point:[]};var s=a.getItemGraphicEl(r),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(r)||[];else if(l&&l.dataToPoint)n=l.dataToPoint(a.getValues(p(l.dimensions,function(t){return a.mapDimension(t)}),r,!0))||[];else if(s){var u=s.getBoundingRect().clone();u.applyTransform(s.transform),n=[u.x+u.width/2,u.y+u.height/2]}return{point:n,el:s}},Rz=f,Bz=x,Vz=ho(),Gz=function(t,e,i){var n=t.currTrigger,o=[t.x,t.y],a=t,r=t.dispatchAction||y(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ey(o)&&(o=zz({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Ey(o),u=a.axesInfo,h=s.axesInfo,c="leave"===n||Ey(o),d={},f={},p={list:[],map:{}},g={showPointer:Bz(Ay,f),showTooltip:Bz(Dy,p)};Rz(s.coordSysMap,function(t,e){var i=l||t.containPoint(o);Rz(s.coordSysAxesInfo[e],function(t){var e=t.axis,n=Py(u,t);if(!c&&i&&(!u||n)){var a=n&&n.value;null!=a||l||(a=e.pointToData(o)),null!=a&&Iy(t,a,g,!1,d)}})});var m={};return Rz(h,function(t,e){var i=t.linkGroup;i&&!f[e]&&Rz(i.axesInfo,function(e,n){var o=f[n];if(e!==t&&o){var a=o.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,Oy(e),Oy(t)))),m[t.key]=a}})}),Rz(m,function(t,e){Iy(h[e],t,g,!0,d)}),Cy(f,h,d),Ly(p,o,t,r),ky(h,r,i),d}},Fz=(Bu({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,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",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),ho()),Wz=f,Hz=Vu({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";Ny("axisPointer",i,function(t,e,i){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){Fy(e.getZr(),"axisPointer"),Hz.superApply(this._model,"remove",arguments)},dispose:function(t,e){Fy("axisPointer",e),Hz.superApply(this._model,"dispose",arguments)}}),Zz=ho(),Uz=n,Xz=y;Wy.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var r=this._group,s=this._handle;if(!a||"hide"===a)return r&&r.hide(),void(s&&s.hide());r&&r.show(),s&&s.show();var l={};this.makeElOption(l,o,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(r){var c=x(Hy,e,h);this.updatePointerEl(r,l,c,e),this.updateLabelEl(r,l,c,e)}else r=this._group=new xM,this.createPointerEl(r,l,t,e),this.createLabelEl(r,l,t,e),i.getZr().add(r);Yy(r,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,o="category"===n.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===i||null==i){var r=this.animationThreshold;if(o&&n.getBandWidth()>r)return!0;if(a){var s=xd(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1}return i===!0},makeElOption:function(){},createPointerEl:function(t,e){var i=e.pointer;if(i){var n=Zz(t).pointerEl=new vA[i.type](Uz(e.pointer));t.add(n)}},createLabelEl:function(t,e,i,n){if(e.label){var o=Zz(t).labelEl=new XT(Uz(e.label));t.add(o),Uy(o,n)}},updatePointerEl:function(t,e,i){var n=Zz(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var o=Zz(t).labelEl;o&&(o.setStyle(e.label.style),i(o,{shape:e.label.shape,position:e.label.position}),Uy(o,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status");if(!o.get("show")||!a||"hide"===a)return n&&i.remove(n),void(this._handle=null);var r;this._handle||(r=!0,n=this._handle=cr(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ES(t.event)},onmousedown:Xz(this._onHandleDragMove,this,0,0),drift:Xz(this._onHandleDragMove,this),ondragend:Xz(this._onHandleDragEnd,this)}),i.add(n)),Yy(n,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(o.getItemStyle(null,s));var l=o.get("size");_(l)||(l=[l,l]),n.attr("scale",[l[0]/2,l[1]/2]),Sl(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)}},_moveHandleToValue:function(t,e){Hy(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Xy(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Xy(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Xy(n)),Zz(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},Wy.prototype.constructor=Wy,_o(Wy);var Yz=Wy.extend({makeElOption:function(t,e,i,n,o){var a=i.axis,r=a.grid,s=n.get("type"),l=nx(r,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var h=jy(n),c=jz[s](a,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=Id(r.model,i);Qy(e,t,d,i,n,o)},getHandleTransform:function(t,e,i){var n=Id(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:Jy(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i){var n=i.axis,o=n.grid,a=n.getGlobalExtent(!0),r=nx(o,n).getOtherAxis(n).getGlobalExtent(),s="x"===n.dim?0:1,l=t.position;l[s]+=e[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var u=(r[1]+r[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{position:l,rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}}}),jz={line:function(t,e,i){var n=tx([e,i[0]],[e,i[1]],ox(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:ex([e-n/2,i[0]],[n,o],ox(t))}}};Wk.registerAxisPointerClass("CartesianAxisPointer",Yz),Du(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!_(e)&&(t.axisPointer.link=[e])}}),Cu(OC.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=dd(t,e)}),ku({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Gz);var qz=["x","y"],Kz=["width","height"],$z=Wy.extend({makeElOption:function(t,e,i,n,o){var a=i.axis,r=a.coordinateSystem,s=rx(r,1-ax(a)),l=r.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var h=jy(n),c=Jz[u](a,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=Sy(i);Qy(e,t,d,i,n,o)},getHandleTransform:function(t,e,i){var n=Sy(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:Jy(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i){var n=i.axis,o=n.coordinateSystem,a=ax(n),r=rx(o,a),s=t.position;s[a]+=e[a],s[a]=Math.min(r[1],s[a]),s[a]=Math.max(r[0],s[a]);var l=rx(o,1-a),u=(l[1]+l[0])/2,h=[u,u];return h[a]=s[a],{position:s,rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}}}),Jz={line:function(t,e,i){var n=tx([e,i[0]],[e,i[1]],ax(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=t.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:ex([e-n/2,i[0]],[n,o],ax(t))}}};Wk.registerAxisPointerClass("SingleAxisPointer",$z),Vu({type:"single"});var Qz=2,tR=CD.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(){tR.superApply(this,"init",arguments),this.legendVisualProvider=new tf(y(this.getData,this),y(this.getRawData,this))},fixData:function(t){var e=t.length,i={},n=vo(t,function(t){return i.hasOwnProperty(t[0])||(i[t[0]]=-1),t[2]}),o=[];n.buckets.each(function(t,e){o.push({name:e,dataList:t})});for(var a=o.length,r=0;a>r;++r){for(var s=o[r].name,l=0;ln;++n)i[n]=n;var o=t.mapDimension("single"),a=vo(i,function(e){return t.get("name",e)}),r=[];return a.buckets.each(function(e,i){e.sort(function(e,i){return t.get(o,e)-t.get(o,i)}),r.push({name:i,indices:e})}),r},getAxisTooltipData:function(t,e){_(t)||(t=t?[t]:[]);for(var i,n=this.getData(),o=this.getLayerSeries(),a=[],r=o.length,s=0;r>s;++s){for(var l=Number.MAX_VALUE,u=-1,h=o[s].indices.length,c=0;h>c;++c){var d=n.get(t[0],o[s].indices[c]),f=Math.abs(d-e);l>=f&&(i=d,l=f,u=o[s].indices[c])}a.push(u)}return{dataIndices:a,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),i=e.getName(t),n=e.get(e.mapDimension("value"),t);return(isNaN(n)||null==n)&&(n="-"),Wr(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});Fu({type:"themeRiver",init:function(){this._layers=[]},render:function(t){function e(t){return t.name}function i(e,i,s){var l=this._layers;if("remove"===e)return void o.remove(l[i]);for(var u,h=[],d=[],f=a[i].indices,p=0;pn[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:y(function(n){var o=e.dataToRadius(n[0]),a=i.dataToAngle(n[1]),r=t.coordToPoint([o,a]);return r.push(o,a*Math.PI/180),r}),size:y(Rx,t)}}},cR=function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}},dR=sA,fR=["itemStyle"],pR=["emphasis","itemStyle"],gR=["label"],mR=["emphasis","label"],vR="e\x00\x00",yR={cartesian2d:sR,geo:lR,singleAxis:uR,polar:hR,calendar:cR};CD.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(){return bh(this.getSource(),this)},getDataParams:function(t,e,i){var n=CD.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),vl.extend({type:"custom",_data:null,render:function(t,e,i,n){var o=this._data,a=t.getData(),r=this.group,s=Fx(t,a,e,i);a.diff(o).add(function(e){Hx(null,e,s(e,n),t,r,a)}).update(function(e,i){var l=o.getItemGraphicEl(i);Hx(l,e,s(e,n),t,r,a)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute();var l=t.get("clip",!0)?Zc(t.coordinateSystem,!1,t):null;l?r.setClipPath(l):r.removeClipPath(),this._data=a},incrementalPrepareRender:function(){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n,o){function a(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var r=e.getData(),s=Fx(e,r,i,n),l=t.start;lc?c=f:(d.lastTickCount=o,d.lastAutoInterval=c),c}},h(r_,sk);var _R=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new a_,this._angleAxis=new r_,this._radiusAxis.polar=this._angleAxis.polar=this};_R.prototype={type:"polar",axisPointerEnabled:!0,constructor:_R,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),o=n.getExtent(),a=Math.min(o[0],o[1]),r=Math.max(o[0],o[1]);n.inverse?a=r-360:r=a+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=a>l?1:-1;a>l||l>r;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,o=-Math.sin(i)*e+this.cy;return[n,o]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),i=e.getExtent().slice();i[0]>i[1]&&i.reverse();var n=t.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*o,endAngle:-n[1]*o,clockwise:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,o=i*i+n*n,a=this.r,r=this.r0;return a*a>=o&&o>=r*r}}}};var wR=WA.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});o(wR.prototype,XL);var bR={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};mk("angle",wR,s_,bR.angle),mk("radius",wR,s_,bR.radius),Bu({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this.ecModel;return i.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var SR={dimensions:_R.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",function(t,n){var o=new _R(n);o.update=u_;var a=o.getRadiusAxis(),r=o.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");h_(a,s),h_(r,l),l_(o,t,e),i.push(o),t.coordinateSystem=o,o.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];if(eS&&!i)throw new Error('Polar "'+D(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=i.coordinateSystem}}),i}};ks.register("polar",SR);var MR=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];Wk.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t){if(this.group.removeAll(),t.get("show")){var e=t.axis,i=e.polar,o=i.getRadiusAxis().getExtent(),a=e.getTicksCoords(),r=e.getMinorTicksCoords(),s=p(e.getViewLabels(),function(t){var t=n(t);return t.coord=e.dataToCoord(t.tickValue),t});f_(s),f_(a),f(MR,function(n){!t.get(n+".show")||e.scale.isBlank()&&"axisLine"!==n||this["_"+n](t,i,a,r,o,s)},this)}},_axisLine:function(t,e,i,n,o){var a,r=t.getModel("axisLine.lineStyle"),s=d_(e),l=s?0:1;a=0===o[l]?new NT({shape:{cx:e.cx,cy:e.cy,r:o[s]},style:r.getLineStyle(),z2:1,silent:!0}):new VT({shape:{cx:e.cx,cy:e.cy,r:o[s],r0:o[l]},style:r.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,this.group.add(a)},_axisTick:function(t,e,i,n,o){var a=t.getModel("axisTick"),r=(a.get("inside")?-1:1)*a.get("length"),l=o[d_(e)],u=p(i,function(t){return new jT({shape:c_(e,[l,l+r],t.coord)})});this.group.add(fA(u,{style:s(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,i,n,o){if(n.length){for(var a=t.getModel("axisTick"),r=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*r.get("length"),u=o[d_(e)],h=[],c=0;cd?"left":"right",g=Math.abs(c[1]-f)/h<.3?"middle":c[1]>f?"top":"bottom";r&&r[a]&&r[a].textStyle&&(n=new mr(r[a].textStyle,s,s.ecModel));var m=new ET({silent:Nk.isLabelSilent(t)});this.group.add(m),Ya(m.style,n,{x:c[0],y:c[1],textFill:n.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:p,textVerticalAlign:g}),u&&(m.eventData=Nk.makeAxisEventDataBase(t),m.eventData.targetType="axisLabel",m.eventData.value=i.rawLabel)},this)},_splitLine:function(t,e,i,n,o){var a=t.getModel("splitLine"),r=a.getModel("lineStyle"),l=r.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=0;ci?"0"+i:i;var n=t.getDate();n=10>n?"0"+n:n;var o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:o,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),r=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];f([0,1],function(t){i(a,t)&&(r[o[t]]=a[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ts(r,l);f([0,1],function(t){i(a,t)||(a[t]=u[o[t]]/s[t]) +}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){_(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,o=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.timea.end.time&&t.reverse(),t},_getRangeInfo:function(t){t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];var e;t[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/LR)-Math.floor(t[0].time/LR)+1,n=new Date(t[0].time),o=n.getDate(),a=t[1].date.getDate();n.setDate(o+i-1);var r=n.getDate();if(r!==a)for(var s=n.getTime()-t[1].time>0?1:-1;(r=n.getDate())!==a&&(n.getTime()-t[1].time)*s>0;)i-=s,n.setDate(r-s);var l=Math.floor((i+t[0].day+6)/7),u=e?-l+1:l-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var o=7*(t-1)-n.fweek+e,a=new Date(n.start.time);return a.setDate(n.start.d+o),this.getDateInfo(a)}},v_.dimensions=v_.prototype.dimensions,v_.getDimensionsInfo=v_.prototype.getDimensionsInfo,v_.create=function(t,e){var i=[];return t.eachComponent("calendar",function(n){var o=new v_(n,t,e);i.push(o),n.coordinateSystem=o}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},ks.register("calendar",v_);var kR=WA.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t){var e=os(t);kR.superApply(this,"init",arguments),x_(t,e)},mergeOption:function(t){kR.superApply(this,"mergeOption",arguments),x_(this.option,t)}}),PR={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},OR={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};Vu({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t){var e=this.group;e.removeAll();var i=t.coordinateSystem,n=i.getRangeInfo(),o=i.getOrient();this._renderDayRect(t,n,e),this._renderLines(t,n,o,e),this._renderYearText(t,n,o,e),this._renderMonthText(t,o,e),this._renderWeekText(t,n,o,e)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=n.getCellWidth(),r=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new XT({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});i.add(u)}},_renderLines:function(t,e,i,n){function o(e){a._firstDayOfMonth.push(r.getDateInfo(e)),a._firstDayPoints.push(r.dataToRect([e],!1).tl);var o=a._getLinePointsOfOneWeek(t,e,i);a._tlpoints.push(o[0]),a._blpoints.push(o[o.length-1]),l&&a._drawSplitline(o,s,n)}var a=this,r=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){o(h.formatedDate),0===c&&(h=r.getDateInfo(e.start.y+"-"+e.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=r.getDateInfo(d)}o(r.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,u,i),s,n),l&&this._drawSplitline(a._getEdgesPoints(a._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===i?0:1;return n[0][o]=n[0][o]-e/2,n[1][o]=n[1][o]+e/2,n},_drawSplitline:function(t,e,i){var n=new HT({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var o=[],a=0;7>a;a++){var r=n.getNextNDay(e.time,a),s=n.dataToRect([r.time],!1);o[2*r.day]=s.tl,o[2*r.day+1]=s["horizontal"===i?"bl":"tr"]}return o},_formatterLabel:function(t,e){return"string"==typeof t&&t?Zr(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,o){e=e.slice();var a=["center","bottom"];"bottom"===n?(e[1]+=o,a=["center","top"]):"left"===n?e[0]-=o:"right"===n?(e[0]+=o,a=["center","top"]):e[1]-=o;var r=0;return("left"===n||"right"===n)&&(r=Math.PI/2),{rotation:r,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,i,n){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),r=o.get("position");r||(r="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===i?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=o.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new ET({z2:30});Ya(m.style,o,{text:g}),m.attr(this._yearTextPositionControl(m,c[r],i,r,a)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,o){var a="left",r="top",s=t[0],l=t[1];return"horizontal"===i?(l+=o,e&&(a="center"),"start"===n&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===n&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:r}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),a=n.get("margin"),s=n.get("position"),l=n.get("align"),u=[this._tlpoints,this._blpoints];b(o)&&(o=PR[o.toUpperCase()]||[]);var h="start"===s?0:1,c="horizontal"===e?0:1;a="start"===s?-a:a;for(var d="center"===l,f=0;ff;f++){var p=a.getNextNDay(c,f),g=a.dataToRect([p.time],!1).center,m=f;m=Math.abs((f+h)%7);var v=new ET({z2:30});r(Ya(v.style,o,{text:l[m]}),this._weekTextPositionControl(g,i,s,u,d)),n.add(v)}}}}),Bu({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),Vu({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,o=t.getModel("textStyle"),a=t.getModel("subtextStyle"),r=t.get("textAlign"),s=C(t.get("textBaseline"),t.get("textVerticalAlign")),l=new ET({style:Ya({},o,{text:t.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new ET({style:Ya({},a,{text:h,textFill:a.getTextColor(),y:u.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on("click",function(){$r(d,"_"+t.get("target"))}),f&&c.on("click",function(){$r(f,"_"+t.get("subtarget"))}),l.eventData=c.eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(l),h&&n.add(c);var g=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=ts(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));r||(r=t.get("left")||t.get("right"),"middle"===r&&(r="center"),"right"===r?v.x+=v.width:"center"===r&&(v.x+=v.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),n.attr("position",[v.x,v.y]);var y={textAlign:r,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=n.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new XT({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});n.add(w)}}});var ER=FD.legend.selector,NR={all:{type:"all",title:n(ER.all)},inverse:{type:"inverse",title:n(ER.inverse)}},zR=Bu({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){zR.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;e===!0&&(e=t.selector=["all","inverse"]),_(e)&&f(e,function(t,i){b(t)&&(t={type:t}),e[i]=o(t,NR[t.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}});ku("legendToggleSelect","legendselectchanged",x(__,"toggleSelected")),ku("legendAllSelect","legendselectall",x(__,"allSelect")),ku("legendInverseSelect","legendinverseselect",x(__,"inverseSelect")),ku("legendSelect","legendselected",x(__,"select")),ku("legendUnSelect","legendunselected",x(__,"unSelect"));var RR=x,BR=f,VR=xM,GR=Vu({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new VR),this._backgroundEl,this.group.add(this._selectorGroup=new VR),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var r=t.get("selector",!0),l=t.get("selectorPosition",!0);!r||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(o,t,e,i,r,a,l);var u=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),d=ts(u,h,c),f=this.layoutInner(t,o,d,n,r,l),p=ts(s({width:f.width,height:f.height},u),h,c);this.group.attr("position",[p.x-f.x,p.y-f.y]),this.group.add(this._backgroundEl=b_(f,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,i,n,o,a,r){var s=this.getContentGroup(),l=B(),u=e.get("selectedMode"),h=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&h.push(t.id)}),BR(e.getData(),function(o,a){var r=o.get("name");if(!this.newlineDisabled&&(""===r||"\n"===r))return void s.add(new VR({newline:!0}));var c=i.getSeriesByName(r)[0];if(!l.get(r)){if(c){var d=c.getData(),f=d.getVisual("color"),p=d.getVisual("borderColor");"function"==typeof f&&(f=f(c.getDataParams(0))),"function"==typeof p&&(p=p(c.getDataParams(0)));var g=d.getVisual("legendSymbol")||"roundRect",m=d.getVisual("symbol"),v=this._createItem(r,a,o,e,g,m,t,f,p,u);v.on("click",RR(M_,r,null,n,h)).on("mouseover",RR(I_,c.name,null,n,h)).on("mouseout",RR(T_,c.name,null,n,h)),l.set(r,!0)}else i.eachRawSeries(function(i){if(!l.get(r)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(r))return;var c=s.indexOfName(r),d=s.getItemVisual(c,"color"),f=s.getItemVisual(c,"borderColor"),p="roundRect",g=this._createItem(r,a,o,e,p,null,t,d,f,u);g.on("click",RR(M_,null,r,n,h)).on("mouseover",RR(I_,null,r,n,h)).on("mouseout",RR(T_,null,r,n,h)),l.set(r,!0)}},this);eS&&(l.get(r)||console.warn(r+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,e,n,a,r)},_createSelector:function(t,e,i){function n(t){var n=t.type,a=new ET({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});o.add(a);var r=e.getModel("selectorLabel"),s=e.getModel("emphasis.selectorLabel");Ua(a.style,a.hoverStyle={},r,s,{defaultText:t.title,isRectText:!1}),Fa(a)}var o=this.getSelectorGroup();BR(t,function(t){n(t)})},_createItem:function(t,e,i,n,o,a,s,l,u,h){var c=n.get("itemWidth"),d=n.get("itemHeight"),f=n.get("inactiveColor"),p=n.get("inactiveBorderColor"),g=n.get("symbolKeepAspect"),m=n.getModel("itemStyle"),v=n.isSelected(t),y=new VR,x=i.getModel("textStyle"),_=i.get("icon"),w=i.getModel("tooltip"),b=w.parentModel;o=_||o;var S=oc(o,0,0,c,d,v?l:f,null==g?!0:g);if(y.add(S_(S,o,m,u,p,v)),!_&&a&&(a!==o||"none"===a)){var M=.8*d;"none"===a&&(a="circle");var I=oc(a,(c-M)/2,(d-M)/2,M,M,v?l:f,null==g?!0:g);y.add(S_(I,a,m,u,p,v))}var T="left"===s?c+5:-5,A=s,D=n.get("formatter"),C=t;"string"==typeof D&&D?C=D.replace("{name}",null!=t?t:""):"function"==typeof D&&(C=D(t)),y.add(new ET({style:Ya({},x,{text:C,x:T,y:d/2,textFill:v?x.getTextColor():f,textAlign:A,textVerticalAlign:"middle"})}));var L=new XT({shape:y.getBoundingRect(),invisible:!0,tooltip:w.get("show")?r({content:t,formatter:b.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},w.option):null});return y.add(L),y.eachChild(function(t){t.silent=!0}),L.silent=!h,this.getContentGroup().add(y),Fa(y),y.__legendDataIndex=e,y},layoutInner:function(t,e,i,n,o,a){var r=this.getContentGroup(),s=this.getSelectorGroup();VA(t.get("orient"),r,t.get("itemGap"),i.width,i.height);var l=r.getBoundingRect(),u=[-l.x,-l.y];if(o){VA("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===a?c[f]+=l[p]+d:u[f]+=h[p]+d,c[1-f]+=l[g]/2-h[g]/2,s.attr("position",c),r.attr("position",u);var v={x:0,y:0};return v[p]=l[p]+d+h[p],v[g]=Math.max(l[g],h[g]),v[m]=Math.min(0,h[m]+c[1-f]),v}return r.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}}),FR=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;ii[o],f=[-h.x,-h.y];e||(f[n]=s.position[n]);var p=[0,0],g=[-c.x,-c.y],m=C(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var v=t.get("pageButtonPosition",!0);"end"===v?g[n]+=i[o]-c[o]:p[n]+=c[o]+m}g[1-n]+=h[a]/2-c[a]/2,s.attr("position",f),l.attr("position",p),u.attr("position",g);var y={x:0,y:0};if(y[o]=d?i[o]:h[o],y[a]=Math.max(h[a],c[a]),y[r]=Math.min(0,c[r]+g[1-n]),l.__rectSize=i[o],d){var x={x:0,y:0};x[o]=Math.max(i[o]-c[o]-m,0),x[a]=y[a],l.setClipPath(new XT({shape:x})),l.__rectSize=x[o]}else u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&nr(s,{position:_.contentPosition},d?t:!1),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;f(["pagePrev","pageNext"],function(n){var o=null!=e[n+"DataIndex"],a=i.childOfName(n);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var n=i.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,r=null!=a?a+1:0,s=e.pageCount;n&&o&&n.setStyle("text",b(o)?o.replace("{current}",r).replace("{total}",s):o({current:r,total:s}))},_getPageInfo:function(t){function e(t){if(t){var e=t.getBoundingRect(),i=e[l]+t.position[r];return{s:i,e:i+e[s],i:t.__legendDataIndex}}}function i(t,e){return t.e>=e&&t.s<=e+a}var n=t.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,r=t.getOrient().index,s=ZR[r],l=UR[r],u=this._findTargetItemIndex(n),h=o.children(),c=h[u],d=h.length,f=d?1:0,p={contentPosition:o.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var g=e(c);p.contentPosition[r]=-g.s;for(var m=u+1,v=g,y=g,x=null;d>=m;++m)x=e(h[m]),(!x&&y.e>v.s+a||x&&!i(x,v.s))&&(v=y.i>v.i?y:x,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),y=x;for(var m=u-1,v=g,y=g,x=null;m>=-1;--m)x=e(h[m]),x&&i(y,x.s)||!(v.i=0;){var l=o.indexOf(r),u=o.substr(s+a.length,l-s-a.length);n["marker"+u]=u.indexOf("sub")>-1?{textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:{textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},o=o.substr(l+1),s=o.indexOf("{marker")}var h=i.getModel("textStyle"),c=h.get("fontSize"),d=i.get("textLineHeight");null==d&&(d=Math.round(3*c/2)),this.el=new ET({style:Ya({},h,{rich:n,text:t,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding"),textLineHeight:d}),z:i.get("z")}),this._zr.add(this.el);var f=this;this.el.on("mouseover",function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0}),this.el.on("mouseout",function(){f._enterable&&f._show&&f.hideLater(f._hideDelay),f._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var i=this._styleCoord;O_(i,this._zr,t,e),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(y(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var $R=y,JR=f,QR=Mr,tB=new XT({shape:{x:-1,y:-1,width:2,height:2}});Vu({type:"tooltip",init:function(t,e){if(!aS.node){var i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=mo(n);var o;"html"===this._renderMode?(o=new P_(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="
          "):(o=new E_(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,i){if(!aS.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");Ny("itemTooltip",this._api,$R(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!aS.node){var o=z_(n,i);this._ticket="";var a=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var r=tB;r.position=[n.x,n.y],r.update(),r.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:r},o)}else if(a)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},o);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=zz(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:n.position,target:s.el},o)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},manuallyHideTip:function(t,e,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(z_(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var o=n.seriesIndex,a=n.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=a&&null!=r){var s=e.getSeriesByIndex(o);if(s){var l=s.getData(),t=N_([l.getItemModel(a),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;o&&o.length?this._showAxisTooltip(o,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=y(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],r=[],s=[],l=N_([e.tooltipOption,n]),u=this._renderMode,h=this._newLine,c={};JR(t,function(t){JR(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var l=$y(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);f(t.seriesDataIndices,function(r){var h=i.getSeriesByIndex(r.seriesIndex),d=r.dataIndexInside,f=h&&h.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Jh(e.axis,n),f.axisValueLabel=l,f){s.push(f);var p,g=h.formatTooltip(d,!0,null,u);if(S(g)){p=g.html;var m=g.markers; +o(c,m)}else p=g;a.push(p)}});var d=l;r.push("html"!==u?a.join(h):(d?Wr(d)+h:"")+a.join(h))}})},this),r.reverse(),r=r.join(this._newLine+this._newLine);var d=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,d,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(l,r,s,Math.random(),a[0],a[1],d,void 0,c)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,o=e.seriesIndex,a=n.getSeriesByIndex(o),r=e.dataModel||a,s=e.dataIndex,l=e.dataType,u=r.getData(l),h=N_([u.getItemModel(s),r,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,p=r.getDataParams(s,l),g=r.formatTooltip(s,!1,l,this._renderMode);S(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+r.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),i({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var o=n;n={content:o,formatter:o}}var a=new mr(n,this._tooltipModel,this._ecModel),r=a.get("content"),s=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,r,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,o,a,r,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");r=r||t.get("position");var c=e;if(h&&"string"==typeof h)c=Hr(h,i,!0);else if("function"==typeof h){var d=$R(function(e,n){e===this._ticket&&(u.setContent(n,l,t),this._updatePosition(t,r,o,a,u,i,s))},this);this._ticket=n,c=h(i,n,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,r,o,a,u,i,s)}},_updatePosition:function(t,e,i,n,o,a,r){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=o.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=r&&r.getBoundingRect().clone();if(r&&d.applyTransform(r.transform),"function"==typeof e&&(e=e([i,n],a,o.el,d,{viewSize:[s,l],contentSize:u.slice()})),_(e))i=QR(e[0],s),n=QR(e[1],l);else if(S(e)){e.width=u[0],e.height=u[1];var f=ts(e,{width:s,height:l});i=f.x,n=f.y,h=null,c=null}else if("string"==typeof e&&r){var p=V_(e,d,u);i=p[0],n=p[1]}else{var p=R_(i,n,o,s,l,h?null:20,c?null:20);i=p[0],n=p[1]}if(h&&(i-=G_(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=G_(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var p=B_(i,n,o,s,l);i=p[0],n=p[1]}o.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&JR(e,function(e,n){var o=e.dataByAxis||{},a=t[n]||{},r=a.dataByAxis||[];i&=o.length===r.length,i&&JR(o,function(t,e){var n=r[e]||{},o=t.seriesDataIndices||[],a=n.seriesDataIndices||[];i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&o.length===a.length,i&&JR(o,function(t,e){var n=a[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){aS.node||(this._tooltipContent.dispose(),Fy("itemTooltip",e))}}),ku({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),ku({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var eB=Gr,iB=Wr,nB=Bu({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i){if(eS&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},isAnimationEnabled:function(){if(aS.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,i,n){var o=this.constructor,a=this.mainType+"Model";i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),s=t[a];return i&&i.data?(s?s._mergeOption(i,e,!0):(n&&F_(i),f(i.data,function(t){t instanceof Array?(F_(t[0]),F_(t[1])):F_(t)}),s=new o(i,this,e),r(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),void(t[a]=s)):void(t[a]=null)},this)},formatTooltip:function(t,e,i,n){var o=this.getData(),a=this.getRawValue(t),r=_(a)?p(a,eB).join(", "):eB(a),s=o.getName(t),l=iB(this.name),u="html"===n?"
          ":"\n";return(null!=a||s)&&(l+=u),s&&(l+=iB(s),null!=a&&(l+=" : ")),null!=a&&(l+=iB(r)),l},getData:function(){return this._data},setData:function(t){this._data=t}});c(nB,ID),nB.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var oB=u,aB=x,rB={min:aB(Z_,"min"),max:aB(Z_,"max"),average:aB(Z_,"average")},sB=Vu({type:"marker",init:function(){this.markerGroupMap=B()},render:function(t,e,i){var n=this.markerGroupMap;n.each(function(t){t.__keep=!1});var o=this.type+"Model";e.eachSeries(function(t){var n=t[o];n&&this.renderSeries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});sB.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&($_(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,i,n){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Pd),u=J_(o,t,e);e.setData(u),$_(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbol"),o=i.getShallow("symbolSize"),a=i.getShallow("symbolRotate"),s=w(n),l=w(o),h=w(a);if(s||l||h){var c=e.getRawValue(t),d=e.getDataParams(t);s&&(n=n(c,d)),l&&(o=o(c,d)),h&&(a=a(c,d))}u.setItemVisual(t,{symbol:n,symbolSize:o,symbolRotate:a,color:i.get("itemStyle.color")||r.getVisual("color")})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),Du(function(t){t.markPoint=t.markPoint||{}}),nB.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var lB=function(t,e,i,a){var s=t.getData(),l=a.type;if(!_(a)&&("min"===l||"max"===l||"average"===l||"median"===l||null!=a.xAxis||null!=a.yAxis)){var u,h;if(null!=a.yAxis||null!=a.xAxis)u=e.getAxis(null!=a.yAxis?"y":"x"),h=D(a.yAxis,a.xAxis);else{var c=X_(a,s,e,t);u=c.valueAxis;var d=wh(s,c.valueDataDim);h=K_(s,d,l)}var f="x"===u.dim?0:1,p=1-f,g=n(a),m={};g.type=null,g.coord=[],m.coord=[],g.coord[p]=-1/0,m.coord[p]=1/0;var v=i.get("precision");v>=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(v,20))),g.coord[f]=m.coord[f]=h,a=[g,m,{type:l,valueIndex:a.valueIndex,value:h}]}return a=[U_(t,a[0]),U_(t,a[1]),r({},a[2])],a[2].type=a[2].type||"",o(a[2],a[0]),o(a[2],a[1]),a};sB.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),o=e.__from,a=e.__to;o.each(function(e){iw(o,e,!0,t,i),iw(a,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[o.getItemLayout(t),a.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,i,n){function o(e,i,o){var a=e.getItemModel(i);iw(e,i,o,t,n),e.setItemVisual(i,{symbolRotate:a.get("symbolRotate"),symbolSize:a.get("symbolSize")||g[o?0:1],symbol:a.get("symbol",!0)||p[o?0:1],color:a.get("itemStyle.color")||s.getVisual("color")})}var a=t.coordinateSystem,r=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,new $g);this.group.add(u.group);var h=nw(a,t,e),c=h.from,d=h.to,f=h.line;e.__from=c,e.__to=d,e.setData(f);var p=e.get("symbol"),g=e.get("symbolSize");_(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),h.from.each(function(t){o(c,t,!0),o(d,t,!1)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.color");f.setItemVisual(t,{color:e||c.getItemVisual(t,"color")}),f.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),f.setItemVisual(t,{fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol")})}),u.updateData(f),h.line.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}}),Du(function(t){t.markLine=t.markLine||{}}),nB.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var uB=function(t,e,i,n){var o=U_(t,n[0]),r=U_(t,n[1]),s=D,l=o.coord,u=r.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var h=a([{},o,r]);return h.coord=[o.coord,r.coord],h.x0=o.x,h.y0=o.y,h.x1=r.x,h.y1=r.y,h},hB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];sB.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each(function(e){var o=p(hB,function(o){return sw(n,e,o,t,i)});n.setItemLayout(e,o);var a=n.getItemGraphicEl(e);a.setShape("points",o)})}},this)},renderSeries:function(t,e,i,n){var o=t.coordinateSystem,a=t.id,r=t.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,{group:new xM});this.group.add(u.group),u.__keep=!0;var h=lw(o,t,e);e.setData(h),h.each(function(e){var i=p(hB,function(i){return sw(h,e,i,t,n)}),a=!0;f(hB,function(t){if(a){var i=h.get(t[0],e),n=h.get(t[1],e);(ow(i)||o.getAxis("x").containData(i))&&(ow(n)||o.getAxis("y").containData(n))&&(a=!1)}}),h.setItemLayout(e,{points:i,allClipped:a}),h.setItemVisual(e,{color:r.getVisual("color")})}),h.diff(u.__data).add(function(t){var e=h.getItemLayout(t);if(!e.allClipped){var i=new WT({shape:{points:e.points}});h.setItemGraphicEl(t,i),u.group.add(i)}}).update(function(t,i){var n=u.__data.getItemGraphicEl(i),o=h.getItemLayout(t);o.allClipped?n&&u.group.remove(n):(n?nr(n,{shape:{points:o.points}},e,t):n=new WT({shape:{points:o.points}}),h.setItemGraphicEl(t,n),u.group.add(n))}).remove(function(t){var e=u.__data.getItemGraphicEl(t);u.group.remove(e)}).execute(),h.eachItemGraphicEl(function(t,i){var n=h.getItemModel(i),o=n.getModel("label"),a=n.getModel("emphasis.label"),r=h.getItemVisual(i,"color");t.useStyle(s(n.getModel("itemStyle").getItemStyle(),{fill:li(r,.4),stroke:r})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),Ua(t.style,t.hoverStyle,o,a,{labelFetcher:e,labelDataIndex:i,defaultText:h.getName(i)||"",isRectText:!0,autoColor:r}),Fa(t,{}),t.dataModel=e}),u.__data=h,u.group.silent=e.get("silent")||t.get("silent")}}),Du(function(t){t.markArea=t.markArea||{}});var cB=function(t){var e=t&&t.timeline;_(e)||(e=e?[e]:[]),f(e,function(t){t&&uw(t)})};WA.registerSubTypeDefaulter("timeline",function(){return"slider"}),ku({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),s({currentIndex:i.option.currentIndex},t)}),ku({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)});var dB=WA.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(){dB.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,o=this._names=[];if("category"===i){var a=[];f(e,function(t,e){var i,r=io(t);S(t)?(i=n(t),i.value=e):i=e,a.push(i),b(r)||null!=r&&!isNaN(r)||(r=""),o.push(r+"")}),e=a}var r={category:"ordinal",time:"time"}[i]||"number",s=this._data=new dL([{name:"value",type:r}],this);s.initData(e,o)},getData:function(){return this._data},getCategories:function(){return"category"===this.get("axisType")?this._names.slice():void 0}}),fB=dB.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});c(fB,ID);var pB=LD.extend({type:"timeline"}),gB=function(t,e,i,n){sk.call(this,t,e,i),this.type=n||"value",this.model=null};gB.prototype={constructor:gB,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},h(gB,sk);var mB=y,vB=f,yB=Math.PI;pB.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),r=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){return Wr(r.scale.getLabel(t))},vB(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](n,o,r,t)},this),this._renderAxisLabel(n,a,r,t),this._position(n,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),o=dw(t,e);null==i||"auto"===i?i="horizontal"===n?o.y+o.height/2=0||"+"===i?"left":"right"},r={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:yB/2},l="vertical"===n?o.height:o.width,u=t.getModel("controlStyle"),h=u.get("show",!0),c=h?u.get("itemSize"):0,d=h?u.get("itemGap"):0,f=c+d,p=t.get("label.rotate")||0;p=p*yB/180;var g,m,v,y,x=u.get("position",!0),_=h&&u.get("showPlayBtn",!0),w=h&&u.get("showPrevBtn",!0),b=h&&u.get("showNextBtn",!0),S=0,M=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),w&&(m=[S,0],S+=f),b&&(v=[M-c,0],M-=f)):(_&&(g=[M-c,0],M-=f),w&&(m=[0,0],S+=f),b&&(v=[M-c,0],M-=f)),y=[S,M],t.get("inverse")&&y.reverse(),{viewRect:o,mainLength:l,orient:n,rotation:s[n],labelRotation:p,labelPosOpt:i,labelAlign:t.get("label.align")||a[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||r[n],playPosition:g,prevBtnPosition:m,nextBtnPosition:v,axisExtent:y,controlSize:c,controlGap:d}},_position:function(t){function e(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function n(t,e,i,n,o){t[n]+=i[n][o]-e[n][o]}var o=this._mainGroup,a=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var s=Oe(),l=r.x,u=r.y+r.height;Re(s,s,[-l,-u]),Be(s,s,-yB/2),Re(s,s,[l,u]),r=r.clone(),r.applyTransform(s)}var h=i(r),c=i(o.getBoundingRect()),d=i(a.getBoundingRect()),f=o.position,p=a.position;p[0]=f[0]=h[0][0];var g=t.labelPosOpt;if(isNaN(g)){var m="+"===g?0:1;n(f,c,h,1,m),n(p,d,h,1,1-m)}else{var m=g>=0?0:1;n(f,c,h,1,m),p[1]=f[1]+g}o.attr("position",f),a.attr("position",p),o.rotation=a.rotation=t.rotation,e(o),e(a)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),o=qh(e,n);o.getTicks=function(){return i.mapArray(["value"],function(t){return t})};var a=i.getDataExtent("value");o.setExtent(a[0],a[1]),o.niceTicks();var r=new gB("value",o,t.axisExtent,n);return r.model=e,r},_createGroup:function(t){var e=this["_"+t]=new xM;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var o=i.getExtent();n.get("lineStyle.show")&&e.add(new jT({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:r({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var o=n.getData(),a=i.scale.getTicks();vB(a,function(t){var a=i.dataToCoord(t),r=o.getItemModel(t),s=r.getModel("itemStyle"),l=r.getModel("emphasis.itemStyle"),u={position:[a,0],onclick:mB(this._changeTimeline,this,t)},h=pw(r,s,e,u);Fa(h,l.getItemStyle()),r.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){var o=i.getLabelModel();if(o.get("show")){var a=n.getData(),r=i.getViewLabels();vB(r,function(n){var o=n.tickValue,r=a.getItemModel(o),s=r.getModel("label"),l=r.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),h=new ET({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:mB(this._changeTimeline,this,o),silent:!1});Ya(h.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Fa(h,Ya({},l))},this)}},_renderControl:function(t,e,i,n){function o(t,i,o,h){if(t){var c={position:t,origin:[a/2,0],rotation:h?-r:0,rectHover:!0,style:s,onclick:o},d=fw(n,i,u,c);e.add(d),Fa(d,l)}}var a=t.controlSize,r=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-a/2,a,a],h=n.getPlayState(),c=n.get("inverse",!0);o(t.nextBtnPosition,"controlStyle.nextIcon",mB(this._changeTimeline,this,c?"-":"+")),o(t.prevBtnPosition,"controlStyle.prevIcon",mB(this._changeTimeline,this,c?"+":"-")),o(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),mB(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,i,n){var o=n.getData(),a=n.getCurrentIndex(),r=o.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=mB(s._handlePointerDrag,s),t.ondragend=mB(s._handlePointerDragend,s),gw(t,a,i,n,!0)},onUpdate:function(t){gw(t,a,i,n)}};this._currentPointer=pw(r,r,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,o=Tr(n.getExtent().slice());i>o[1]&&(i=o[1]),is&&(n=s,e=a)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}}),Du(cB),WA.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var xB=["x","y","z","radius","angle","single"],_B=["cartesian2d","polar","singleAxis"],wB=vw(xB,["axisIndex","axis","index","id"]),bB=f,SB=Tr,MB=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};MB.prototype={constructor:MB,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(i){if(mw(i.get("coordinateSystem"))){var n=this._dimName,o=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,o=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var r;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(o.get(e)||0)&&(r=t)}),r},getMinMaxSpan:function(){return n(this._minMaxSpan)},calculateDataWindow:function(t){function e(t,e,i,n,o){var r=o?"Span":"ValueSpan";zN(0,t,i,"all",h["min"+r],h["max"+r]);for(var s=0;2>s;s++)e[s]=Sr(t[s],i,n,!0),o&&(e[s]=a.parse(e[s]))}var i,n=this._dataExtent,o=this.getAxisModel(),a=o.axis.scale,r=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];bB(["start","end"],function(e,o){var h=t[e],c=t[e+"Value"];"percent"===r[o]?(null==h&&(h=s[o]),c=a.parse(Sr(h,s,n))):(i=!0,c=null==c?n[o]:a.parse(c),h=Sr(c,n,s)),u[o]=c,l[o]=h}),SB(u),SB(l);var h=this._minMaxSpan;return i?e(u,l,n,s,!1):e(l,u,s,n,!0),{valueWindow:u,percentWindow:l}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=xw(this,this._dimName,e),bw(this);var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,ww(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,ww(this,!0))},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&bB(n,function(t){var n=t.getData(),r=n.mapDimension(i,!0);r.length&&("weakFilter"===o?n.filterSelf(function(t){for(var e,i,o,s=0;sa[1];if(u&&!h&&!c)return!0;u&&(o=!0),h&&(e=!0),c&&(i=!0)}return o&&e&&i}):bB(r,function(i){if("empty"===o)t.setData(n=n.map(i,function(t){return e(t)?t:0/0}));else{var r={};r[i]=a,n.selectRange(r)}}),bB(r,function(t){n.setApproximateExtent(a,t)}))})}}};var IB=f,TB=wB,AB=Bu({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=Sw(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=Sw(t);o(this.option,t,!0),o(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;aS.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),Mw(this,t);var i=this.settledOption;IB([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,o){var a=this.dependentModels[e.axis][i],r=a.__dzAxisProxy||(a.__dzAxisProxy=new MB(e.name,i,this,o));t[e.name+"_"+i]=r},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();TB(function(e){var i=e.axisIndex;t[i]=to(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;TB(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var o="vertical"===e?"y":"x";n[o+"Axis"].length?(i[o+"AxisIndex"]=[0],t=!1):IB(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&TB(function(e){if(t){var n=[],o=this.dependentModels[e.axis];if(o.length&&!n.length)for(var a=0,r=o.length;r>a;a++)"category"===o[a].get("type")&&n.push(a);i[e.axisIndex]=n,n.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&TB(function(e){var n=i[e.axisIndex],o=t.get(e.axisIndex),a=t.get(e.axisId),r=t.ecModel.queryComponents({mainType:e.axis,index:o,id:a})[0];if(eS&&!r)throw new Error(e.axis+' "'+D(o,a,0)+'" not found');o=r.componentIndex,u(n,o)<0&&n.push(o)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return TB(function(n){var o=t.get(n.axisIndex),a=this.dependentModels[n.axis][o];a&&a.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return TB(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;TB(function(n){IB(this.get(n.axisIndex),function(o){t.call(e,n,o,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t){var e=this.option,i=this.settledOption;IB([["start","startValue"],["end","endValue"]],function(n){(null!=t[n[0]]||null!=t[n[1]])&&(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])},this),Mw(this,t)},setCalculatedRange:function(t){var e=this.option;IB(["start","startValue","end","endValue"],function(i){e[i]=t[i]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),DB=LD.extend({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){function t(t,e,i,n){for(var o,a=0;a0&&e%g)return void(p+=f);var i=null==t||isNaN(t)||""===t,n=i?0:LB(t,a,u,!0);i&&!l&&e?(c.push([c[c.length-1][0],0]),d.push([d[d.length-1][0],0])):!i&&l&&(c.push([p,0]),d.push([p,0])),c.push([p,n]),d.push([p,n]),p+=f,l=i});var m=this.dataZoomModel;this._displayables.barGroup.add(new WT({shape:{points:c},style:s({fill:m.get("dataBackgroundColor")},m.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new HT({shape:{points:d},style:m.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(e!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(o,a){var r=t.getAxisProxy(o.name,a).getTargetSeriesModels();f(r,function(t){if(!(i||e!==!0&&u(GB,t.get("type"))<0)){var r,s=n.getComponent(o.axis,a).axis,l=Iw(o.name),h=t.coordinateSystem;null!=l&&h.getOtherAxis&&(r=h.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),i={thisAxis:s,series:t,thisDim:o.name,otherDim:l,otherAxisInverse:r}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,o=this._size,a=this.dataZoomModel;n.add(t.filler=new CB({draggable:!0,cursor:Tw(this._orient),drift:PB(this._onDragMove,this,"all"),ondragstart:PB(this._showDataInfo,this,!0),ondragend:PB(this._onDragEnd,this),onmouseover:PB(this._showDataInfo,this,!0),onmouseout:PB(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),n.add(new CB({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:NB,fill:"rgba(0,0,0,0)"}})),OB([0,1],function(t){var o=cr(a.get("handleIcon"),{cursor:Tw(this._orient),draggable:!0,drift:PB(this._onDragMove,this,t),ondragend:PB(this._onDragEnd,this),onmouseover:PB(this._showDataInfo,this,!0),onmouseout:PB(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),r=o.getBoundingRect();this._handleHeight=Mr(a.get("handleSize"),this._size[1]),this._handleWidth=r.width/r.height*this._handleHeight,o.setStyle(a.getModel("handleStyle").getItemStyle());var s=a.get("handleColor");null!=s&&(o.style.fill=s),n.add(e[t]=o);var l=a.textStyleModel;this.group.add(i[t]=new ET({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[LB(t[0],[0,100],e,!0),LB(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),a=i.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];zN(e,n,o,i.get("zoomLock")?"all":t,null!=a.minSpan?LB(a.minSpan,r,o,!0):null,null!=a.maxSpan?LB(a.maxSpan,r,o,!0):null);var s=this._range,l=this._range=kB([LB(n[0],o,r,!0),LB(n[1],o,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=kB(i.slice()),o=this._size;OB([0,1],function(t){var n=e.handles[t],a=this._handleHeight;n.attr({scale:[a/2,a/2],position:[i[t],o[1]/2-a/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=ar(n.handles[t].parent,this.group),i=sr(0===t?"right":"left",e),s=this._handleWidth/2+VB,l=rr([c[t]+(0===t?-s:s),this._size[1]/2],e);o[t].setStyle({x:l[0],y:l[1],textVerticalAlign:a===RB?"middle":i,textAlign:a===RB?i:"center",text:r[t]})}var i=this.dataZoomModel,n=this._displayables,o=n.handleLabels,a=this._orient,r=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,h=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();r=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=kB(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");(null==o||"auto"===o)&&(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(o,20));return w(n)?n(t,a):b(n)?n.replace("{value}",a):a},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i,n){this._dragging=!0,ES(n.event);var o=this._displayables.barGroup.getLocalTransform(),a=rr([e,i],o,!0),r=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),r&&s&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,a=this._updateInterval("all",i[0]-o);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(OB(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});Cu({getTargetSeries:function(t){var e=B();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){var o=n.getAxisProxy(t.name,i);f(o.getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)}),t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})})}}),ku("dataZoom",function(t,e){var i=yw(y(e.eachComponent,e,"dataZoom"),wB,function(t,e){return t.get(e.axisIndex)}),n=[];e.eachComponent({mainType:"dataZoom",query:t},function(t){n.push.apply(n,i(t).nodes)}),f(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),AB.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var WB="\x00_ec_dataZoom_roams",HB=y,ZB=DB.extend({type:"dataZoom.inside",init:function(){this._range},render:function(t,e,i){ZB.superApply(this,"render",arguments),this._range=t.getPercentRange(),f(this.getTargetCoordInfo(),function(e,n){var o=p(e,function(t){return Cw(t.model)});f(e,function(e){var a=e.model,r={};f(["pan","zoom","scrollMove"],function(t){r[t]=HB(UB[t],this,e,n)},this),Aw(i,{coordId:Cw(a),allCoordIds:o,containsPoint:function(t,e,i){return a.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,dataZoomModel:t,getRange:r})},this)},this)},dispose:function(){Dw(this.api,this.dataZoomModel.id),ZB.superApply(this,"dispose",arguments),this._range=null}}),UB={zoom:function(t,e,i,n){var o=this._range,a=o.slice(),r=t.axisModels[0];if(r){var s=XB[e](null,[n.originX,n.originY],r,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return zN(0,a,[0,100],0,h.minSpan,h.maxSpan),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}},pan:Nw(function(t,e,i,n,o,a){var r=XB[n]([a.oldX,a.oldY],[a.newX,a.newY],e,o,i);return r.signal*(t[1]-t[0])*r.pixel/r.pixelLength}),scrollMove:Nw(function(t,e,i,n,o,a){var r=XB[n]([0,0],[a.scrollDelta,a.scrollDelta],e,o,i);return r.signal*(t[1]-t[0])*a.scrollDelta})},XB={grid:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=a.inverse?-1:1),r},polar:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=u[1]-u[0],r.pixelStart=u[0],r.signal=a.inverse?-1:1),r},singleAxis:function(t,e,i,n,o){var a=i.axis,r=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=a.inverse?-1:1),s}},YB=["rect","polygon","keep","clear"],jB=function(t,e){var i=t&&t.brush;if(_(i)||(i=i?[i]:[]),i.length){var n=[];f(i,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))});var o=t&&t.toolbox;_(o)&&(o=o[0]),o||(o={feature:{}},t.toolbox=[o]);var a=o.feature||(o.feature={}),r=a.brush||(a.brush={}),s=r.type||(r.type=[]);s.push.apply(s,n),zw(s),e&&!s.length&&s.push.apply(s,YB)}},qB=f,KB={lineX:Ww(0),lineY:Ww(1),rect:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])},rect:function(t,e,i){return t&&i.boundingRect.intersect(t)}},polygon:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])&&uc(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(!t||n.length<=1)return!1;var o=t.x,a=t.y,r=t.width,s=t.height,l=n[0];return uc(n,o,a)||uc(n,o+r,a)||uc(n,o,a+s)||uc(n,o+r,a+s)||Ti.create(t).contain(l[0],l[1])||dr(o,a,o+r,a,n)||dr(o,a,o,a+s,n)||dr(o+r,a,o+r,a+s,n)||dr(o,a+s,o+r,a+s,n)?!0:void 0}}},$B=f,JB=u,QB=x,tV=["dataToPoint","pointToData"],eV=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iV=Zw.prototype;iV.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=rV[t.brushType](0,i,e);t.__rangeOffset={offset:sV[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})},iV.matchOutputRanges=function(t,e,i){$B(t,function(t){var n=this.findTargetInfo(t,e);n&&n!==!0&&f(n.coordSyses,function(n){var o=rV[t.brushType](1,n,t.range);i(t,o.values,n,e)})},this)},iV.setInputRanges=function(t,e){$B(t,function(t){var i=this.findTargetInfo(t,e);if(eS&&(O(!i||i===!0||t.coordRange,"coordRange must be specified when coord index specified."),O(!i||i!==!0||t.range,"range must be specified in global brush.")),t.range=t.range||[],i&&i!==!0){t.panelId=i.panelId;var n=rV[t.brushType](0,i.coordSys,t.coordRange),o=t.__rangeOffset;t.range=o?sV[t.brushType](n.values,o.offset,qw(n.xyMinMax,o.xyMinMax)):n.values}},this)},iV.makePanelOpts=function(t,e){return p(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:Av(n),isTargetByCursor:Cv(n,t,i.coordSysModel),getLinearBrushOtherExtent:Dv(n)}})},iV.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return n===!0||n&&JB(n.coordSyses,e.coordinateSystem)>=0},iV.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=Xw(e,t),o=0;o=0||JB(n,t.getAxis("y").model)>=0)&&a.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:aV.grid,xAxisDeclared:r[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){$B(t.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:aV.geo})})}},oV=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,o=t.gridModel;return!o&&i&&(o=i.axis.grid.model),!o&&n&&(o=n.axis.grid.model),o&&o===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],aV={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ar(t)),e}},rV={lineX:QB(Yw,0),lineY:QB(Yw,1),rect:function(t,e,i){var n=e[tV[t]]([i[0][0],i[1][0]]),o=e[tV[t]]([i[0][1],i[1][1]]),a=[Uw([n[0],o[0]]),Uw([n[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]],o=p(i,function(i){var o=e[tV[t]](i);return n[0][0]=Math.min(n[0][0],o[0]),n[1][0]=Math.min(n[1][0],o[1]),n[0][1]=Math.max(n[0][1],o[0]),n[1][1]=Math.max(n[1][1],o[1]),o});return{values:o,xyMinMax:n}}},sV={lineX:QB(jw,0),lineY:QB(jw,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return p(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}},lV=["inBrush","outOfBrush"],uV="__ecBrushSelect",hV="__ecInBrushSelectEvent",cV=OC.VISUAL.BRUSH;Eu(cV,function(t,e,i){t.eachComponent({mainType:"brush"},function(t){i&&"takeGlobalCursor"===i.type&&t.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1})}),$w(t)}),Nu(cV,function(t,e,i){var o,a,r=[];t.eachComponent({mainType:"brush"},function(e,i){function l(t){return"all"===m||v[t]}function u(t){return!!t.length}function h(t,e){var i=t.coordinateSystem;w|=i.hasAxisBrushed(),l(e)&&i.eachActiveState(t.getData(),function(t,e){"active"===t&&(y[e]=1)})}function c(i,n,o){var a=eb(i);if(a&&!ib(e,n)&&(f(b,function(n){a[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&o.push(n),w|=u(o)}),l(n)&&u(o))){var r=i.getData();r.each(function(t){tb(a,o,r,t)&&(y[t]=1)})}}var d={brushId:e.id,brushIndex:i,brushName:e.name,areas:n(e.areas),selected:[]};r.push(d);var g=e.option,m=g.brushLink,v=[],y=[],x=[],w=0;i||(o=g.throttleType,a=g.throttleDelay);var b=p(e.areas,function(t){return nb(s({boundingRect:dV[t.brushType](t)},t))}),S=Bw(e.option,lV,function(t){t.mappingMethod="fixed"});_(m)&&f(m,function(t){v[t]=1}),t.eachSeries(function(t,e){var i=x[e]=[];"parallel"===t.subType?h(t,e,i):c(t,e,i)}),t.eachSeries(function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};d.selected.push(i);var n=eb(t),o=x[e],a=t.getData(),r=l(e)?function(t){return y[t]?(i.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return tb(n,o,a,t)?(i.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(l(e)?w:u(o))&&Gw(lV,S,a,r)})}),Jw(e,o,a,r,i)});{var dV={lineX:G,lineY:G,rect:function(t){return ob(t.range)},polygon:function(t){for(var e,i=t.range,n=0,o=i.length;o>n;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=i[n];a[0]e[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&ob(e)}},fV=["#ddd"];Bu({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&Vw(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:fV},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){eS&&(O(_(t)),f(t,function(t){O(t.brushType,"Illegal areas")})),t&&(this.areas=p(t,function(t){return ab(this.option,t)},this))},setBrushOption:function(t){this.brushOption=ab(this.option,t),this.brushType=this.brushOption.brushType}})}Vu({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Hm(e.getZr())).on("brush",y(this._onBrush,this)).mount()},render:function(t){return this.model=t,rb.apply(this,arguments)},updateTransform:function(t,e){return $w(e),rb.apply(this,arguments)},updateView:rb,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:n(t),$from:i}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:n(t),$from:i})}}),ku({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),ku({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),ku({type:"brushEnd",event:"brushEnd",update:"none"},function(){});var pV={},gV=FD.toolbox.brush;ub.defaultOption={show:!0,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",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",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",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",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",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"},title:n(gV.title)};var mV=ub.prototype;mV.render=mV.updateView=function(t,e){var i,n,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,n=t.brushOption.brushMode||"single",o|=t.areas.length}),this._brushType=i,this._brushMode=n,f(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===n:"clear"===e?o:e===i)?"emphasis":"normal")})},mV.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return f(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},mV.onclick=function(t,e,i){var n=this._brushType,o=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n===i?!1:i,brushMode:"keep"===i?"multiple"===o?"single":"multiple":o}})},sb("brush",ub),Du(jB);var vV=f,yV=function(t){var e=t&&t.visualMap;_(e)||(e=e?[e]:[]),vV(e,function(t){if(t){hb(t,"splitList")&&!hb(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&_(e)&&vV(e,function(t){S(t)&&(hb(t,"start")&&!hb(t,"min")&&(t.min=t.start),hb(t,"end")&&!hb(t,"max")&&(t.max=t.end))})}})};WA.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"});var xV=OC.VISUAL.COMPONENT;Nu(xV,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(Fw(e.stateList,e.targetVisuals,y(e.getValueState,e),e.getDataDimension(t.getData())))}),i}}),Nu(xV,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(y(cb,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimension(i),r=i.getDimensionInfo(a);null!=r&&(o.dimension=r.index,n.push(o))}}),t.getData().setVisual("visualMeta",n)}});var _V={get:function(t,e,i){var o=n((wV[t]||{})[e]);return i&&_(o)?o[o.length-1]:o}},wV={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},bV=kO.mapVisual,SV=kO.eachVisual,MV=_,IV=f,TV=Tr,AV=Sr,DV=G,CV=Bu({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;aS.canvasSupported||(i.realtime=!1),!e&&Vw(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=y(t,this),this.controllerVisuals=Bw(this.option.controller,e,t),this.targetVisuals=Bw(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,i){e.push(i)}):e=to(t),e},eachTargetSeries:function(t,e){f(this.getTargetSeriesIndices(),function(i){t.call(e,this.ecModel.getSeriesByIndex(i))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(i){i===t&&(e=!0)}),e},formatValueText:function(t,e,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}var o,a,r=this.option,s=r.precision,l=this.dataBound,u=r.formatter;return i=i||["<",">"],_(t)&&(t=t.slice(),o=!0),a=e?t:o?[n(t[0]),n(t[1])]:n(t),b(u)?u.replace("{value}",o?a[0]:a).replace("{value2}",o?a[1]:a):w(u)?o?u(t[0],t[1]):u(t):o?t[0]===l[0]?i[0]+" "+a[1]:t[1]===l[1]?i[1]+" "+a[0]:a[0]+" - "+a[1]:a},resetExtent:function(){var t=this.option,e=TV([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,o=n.length-1;o>=0;o--){var a=n[o],r=t.getDimensionInfo(a);if(!r.isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){MV(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice().reverse()}),t.inRange=t.inRange||{color:a.get("gradientColor")},IV(this.stateList,function(e){var i=t[e];if(b(i)){var n=_V.get(i,"active",h);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}function e(t,e,i){var n=t[e],o=t[i];n&&!o&&(o=t[i]={},IV(n,function(t,e){if(kO.isValidType(e)){var i=_V.get(e,"inactive",h);null!=i&&(o[e]=i,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}function i(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,o=this.get("inactiveColor");IV(this.stateList,function(a){var r=this.itemSize,s=t[a];s||(s=t[a]={color:h?o:[o]}),null==s.symbol&&(s.symbol=e&&n(e)||(h?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&n(i)||(h?r[0]:[r[0],r[0]])),s.symbol=bV(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var u=-1/0;SV(l,function(t){t>u&&(u=t)}),s.symbolSize=bV(l,function(t){return AV(t,[0,u],[0,r[0]],!0)})}},this)}var a=this.ecModel,r=this.option,s={inRange:r.inRange,outOfRange:r.outOfRange},l=r.target||(r.target={}),u=r.controller||(r.controller={});o(l,s),o(u,s);var h=this.isCategory();t.call(this,l),t.call(this,u),e.call(this,l,"inRange","outOfRange"),i.call(this,u)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:DV,getValueState:DV,getVisualMeta:DV}),LV=[20,140],kV=CV.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(){kV.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){kV.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=LV[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=LV[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):_(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){CV.prototype.completeVisualOption.apply(this,arguments),f(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Tr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimension(o),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getVisualMeta:function(t){function e(e,i){o.push({value:e,color:t(e,i)})}for(var i=db(this,"outOfRange",this.getExtent()),n=db(this,"inRange",this.option.range.slice()),o=[],a=0,r=0,s=n.length,l=i.length;l>r&&(!n.length||i[r]<=n[0]);r++)i[r]a;a++,u=0)u&&o.length&&e(n[a],"outOfRange"),e(n[a],"inRange");for(var u=1;l>r;r++)(!n.length||n[n.length-1]a;a++){var r=t[0]+o*a;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:a/i})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new xM("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,a=i.handleLabels;EV([0,1],function(r){var s=o[r];s.setStyle("fill",e.handlesColor[r]),s.position[1]=t[r];var l=rr(i.handleLabelPoints[r],ar(s,this.group));a[r].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[r]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===r?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r[1]],l=OV(t,a,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",vb(!!i,n,l,r[1]));var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",c);h.setStyle("fill",d);var f=rr(u.indicatorLabelPoint,ar(h,this.group)),p=u.indicatorLabel;p.attr("invisible",!1);var g=this._applyTransform("left",u.barGroup),m=this._orient;p.setStyle({text:(i?i:"")+o.formatValueText(e),textVerticalAlign:"horizontal"===m?g:"middle",textAlign:"horizontal"===m?"center":g,x:f[0],y:f[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=NV(zV(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o=[0,n[1]],a=i.getExtent();t=NV(zV(o[0],t),o[1]);var r=yb(i,a,o),s=[t-r,t+r],l=OV(t,o,a,!0),u=[OV(s[0],o,a,!0),OV(s[1],o,a,!0)];s[0]o[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",r):1/0===u[1]?this._showIndicator(l,u[0],"> ",r):this._showIndicator(l,l,"≈ ",r));var h=this._hoverLinkDataIndices,c=[];(e||xb(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=lo(h,c);this._dispatchHighDown("downplay",pb(d[0],i)),this._dispatchHighDown("highlight",pb(d[1],i))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var o=n.getData(e.dataType),a=o.get(i.getDataDimension(o),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",pb(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var o=ar(e,n?null:this.group);return vA[_(t)?"applyTransform":"transformDirection"](t,o,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}}),GV={type:"selectDataRange",event:"dataRangeSelected",update:"update"};ku(GV,function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})}),Du(yV);{var FV=CV.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){FV.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();WV[this._mode].call(this),this._resetSelected(t,e);var o=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=n(o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=p(this._pieceList,function(t){var t=n(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(S(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=kO.listVisualTypes(),o=this.isCategory();f(e.pieces,function(t){f(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),f(i,function(i,n){var a=0;f(this.stateList,function(i){a|=t(e,i,n)||t(e.target,i,n)},this),!a&&f(this.stateList,function(t){(e[t]||(e[t]={}))[n]=_V.get(n,"inRange"===t?"active":"inactive",o)})},this),CV.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,o=(e?i:t).selected||{};if(i.selected=o,f(n,function(t){var e=this.getSelectedMapKey(t);o.hasOwnProperty(e)||(o[e]=!0)},this),"single"===i.selectedMode){var a=!1;f(n,function(t){var e=this.getSelectedMapKey(t);o[e]&&(a?o[e]=!1:a=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=n(t)},getValueState:function(t){var e=kO.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimension(o),function(e,i){var o=kO.findPieceIndex(e,this._pieceList);o===t&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&1/0===i[1]?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,a){var r=o.getRepresentValue({interval:e});a||(a=o.getValueState(r));var s=t(r,a);e[0]===-1/0?n[0]=s:1/0===e[1]?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],o=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),r=a[a.length-1].interval[1],1/0!==r&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return f(a,function(t){var i=t.interval;i&&(i[0]>s&&e([s,i[0]],"outOfRange"),e(i.slice()),s=i[1])},this),{stops:i,outerColors:n}}}}),WV={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var a=(n[1]-n[0])/o;+a.toFixed(i)!==a&&5>i;)i++;t.precision=i,a=+a.toFixed(i),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var r=0,s=n[0];o>r;s+=a,r++){var l=r===o-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),Br(e),f(e,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;f(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),wb(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;f(t.pieces,function(t,i){S(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var o=n.value=t.value;n.interval=[o,o],n.close=[1,1]}else{for(var a=n.interval=[],r=n.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],h=0;2>h;h++){for(var c=[["gte","gt","min"],["lte","lt","max"]][h],d=0;3>d&&null==a[h];d++)a[h]=t[c[d]],r[h]=s[d],u[h]=2===d;null==a[h]&&(a[h]=l[h])}u[0]&&1/0===a[1]&&(r[0]=0),u[1]&&a[0]===-1/0&&(r[1]=0),eS&&a[0]>a[1]&&console.warn("Piece "+i+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&r[0]&&r[1]&&(n.value=a[0])}n.visual=kO.retrieveVisuals(t),e.push(n)},this),wb(t,e),Br(e),f(e,function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}};PV.extend({type:"visualMap.piecewise",doRender:function(){function t(t){var o=t.piece,u=new xM;u.onclick=y(this._onItemClick,this,o),this._enableHoverLink(u,t.indexInModelPieceList);var h=i.getRepresentValue(o);if(this._createItemSymbol(u,h,[0,0,l[0],l[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new ET({style:{x:"right"===s?-n:l[0]+n,y:l[1]/2,text:o.text,textVerticalAlign:"middle",textAlign:s,textFont:a,textFill:r,opacity:"outOfRange"===d?.5:1}}))}e.add(u)}var e=this.group;e.removeAll();var i=this.visualMapModel,n=i.get("textGap"),o=i.textStyleModel,a=o.getFont(),r=o.getTextColor(),s=this._getItemAlign(),l=i.itemSize,u=this._getViewData(),h=u.endsText,c=D(i.get("showLabel",!0),!h);h&&this._renderEndsText(e,h[0],l,c,s),f(u.viewPieceList,t,this),h&&this._renderEndsText(e,h[1],l,c,s),VA(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:pb(i.findTargetDataIndices(e),i)})}t.on("mouseover",y(i,this,"highlight")).on("mouseout",y(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return fb(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,o){if(e){var a=new xM,r=this.visualMapModel.textStyleModel;a.add(new ET({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?o:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=p(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return("horizontal"===n?o:!o)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(oc(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,o=n(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(o[a]=!0,f(o,function(t,e){o[e]=e===a})):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}})}Du(yV);var HV=Bu({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){HV.superApply(this,"optionUpdated",arguments),f(this.option.feature,function(t,e){var i=lb(e);i&&o(t,i.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}});Vu({type:"toolbox",render:function(t,e,i,n){function o(o,r){var s,l=c[o],d=c[r],f=u[l],p=new mr(f,t,t.ecModel);if(n&&null!=n.newTitle&&n.featureName===l&&(f.title=n.newTitle),l&&!d){if(bb(l))s={model:p,onclick:p.option.onclick,featureName:l};else{var g=lb(l);if(!g)return;s=new g(p,e,i)}h[l]=s}else{if(s=h[d],!s)return;s.model=p,s.ecModel=e,s.api=i}return!l&&d?void(s.dispose&&s.dispose(e,i)):!p.get("show")||s.unusable?void(s.remove&&s.remove(e,i)):(a(p,s,l),p.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},void(s.render&&s.render(p,e,i,n)))}function a(n,o,a){var u=n.getModel("iconStyle"),h=n.getModel("emphasis.iconStyle"),c=o.getIcons?o.getIcons():n.get("icon"),d=n.get("title")||{};if("string"==typeof c){var p=c,g=d;c={},d={},c[a]=p,d[a]=g}var m=n.iconPaths={};f(c,function(a,c){var f=cr(a,{},{x:-l/2,y:-l/2,width:l,height:l});f.setStyle(u.getItemStyle()),f.hoverStyle=h.getItemStyle(),f.setStyle({text:d[c],textAlign:h.get("textAlign"),textBorderRadius:h.get("textBorderRadius"),textPadding:h.get("textPadding"),textFill:null});var p=t.getModel("tooltip");p&&p.get("show")&&f.attr("tooltip",r({content:d[c],formatter:p.get("formatter",!0)||function(){return d[c]},formatterParams:{componentType:"toolbox",name:c,title:d[c],$vars:["name","title"]},position:p.get("position",!0)||"bottom"},p.option)),Fa(f),t.get("showTitle")&&(f.__title=d[c],f.on("mouseover",function(){var e=h.getItemStyle(),i="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:h.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:h.get("textBackgroundColor"),textPosition:h.get("textPosition")||i})}).on("mouseout",function(){f.setStyle({textFill:null,textBackgroundColor:null})})),f.trigger(n.get("iconStatus."+c)||"normal"),s.add(f),f.on("click",y(o.onclick,o,e,i,c)),m[c]=f})}var s=this.group;if(s.removeAll(),t.get("show")){var l=+t.get("itemSize"),u=t.get("feature")||{},h=this._features||(this._features={}),c=[];f(u,function(t,e){c.push(e)}),new Xu(this._featureNames||[],c).add(o).update(o).remove(x(o,null)).execute(),this._featureNames=c,w_(s,t,i),s.add(b_(s.getBoundingRect(),t)),s.eachChild(function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var o=Ui(e,sn(n)),a=t.position[0]+s.position[0],r=t.position[1]+s.position[1]+l,u=!1;r+o.height>i.getHeight()&&(n.textPosition="top",u=!0);var h=u?-5-o.height:l+8;a+o.width/2>i.getWidth()?(n.textPosition=["100%",h],n.textAlign="right"):a-o.width/2<0&&(n.textPosition=[0,h],n.textAlign="left")}})}},updateView:function(t,e,i,n){f(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,n)})},remove:function(t,e){f(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){f(this._features,function(i){i.dispose&&i.dispose(t,e)})}});var ZV=FD.toolbox.saveAsImage;Sb.defaultOption={show:!0,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:ZV.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:ZV.lang.slice()},Sb.prototype.unusable=!aS.canvasSupported;var UV=Sb.prototype;UV.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),a=o?"svg":i.get("type",!0)||"png",r=e.getConnectedDataURL({type:a,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||aS.browser.ie||aS.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(r.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,n+"."+a)}else{var c=i.get("lang"),d='',f=window.open();f.document.write(d)}else{var p=document.createElement("a");p.download=n+"."+a,p.target="_blank",p.href=r;var g=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});p.dispatchEvent(g)}},sb("saveAsImage",Sb);var XV=FD.toolbox.magicType,YV="__ec_magicType_stack__";Mb.defaultOption={show:!0,type:[],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"},title:n(XV.title),option:{},seriesIndex:{}};var jV=Mb.prototype;jV.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return f(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var qV={line:function(t,e,i,n){return"bar"===t?o({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0):void 0},bar:function(t,e,i,n){return"line"===t?o({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0):void 0},stack:function(t,e,i,n){var a=i.get("stack")===YV;return"line"===t||"bar"===t?(n.setIconStatus("stack",a?"normal":"emphasis"),o({id:e,stack:a?"":YV},n.get("option.stack")||{},!0)):void 0}},KV=[["line","bar"],["stack"]];jV.onclick=function(t,e,i){var a=this.model,r=a.get("seriesIndex."+i);if(qV[i]){var l={series:[]},h=function(e){var n=e.subType,o=e.id,r=qV[i](n,o,e,a);r&&(s(r,e.option),l.series.push(r));var u=e.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var c=h.dim,d=c+"Axis",f=t.queryComponents({mainType:d,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],p=f.componentIndex;l[d]=l[d]||[];for(var g=0;p>=g;g++)l[d][p]=l[d][p]||{};l[d][p].boundaryGap="bar"===i}}};f(KV,function(t){u(t,i)>=0&&f(t,function(t){a.setIconStatus(t,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},h);var c;if("stack"===i){var d=l.series&&l.series[0]&&l.series[0].stack===YV;c=d?o({stack:XV.title.tiled},XV.title):n(XV.title)}e.dispatchAction({type:"changeMagicType",currentType:i,newOption:l,newTitle:c,featureName:"magicType"})}},ku({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),sb("magicType",Mb);var $V=FD.toolbox.dataView,JV=new Array(60).join("-"),QV=" ",tG=new RegExp("["+QV+"]+","g");Eb.defaultOption={show:!0,readOnly:!1,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:n($V.title),lang:n($V.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},Eb.prototype.onclick=function(t,e){function i(){n.removeChild(a),x._dom=null}var n=e.getDom(),o=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var r=document.createElement("h4"),s=o.get("lang")||[];r.innerHTML=s[0]||o.get("title"),r.style.cssText="margin: 10px 20px;",r.style.color=o.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var h=o.get("optionToContent"),c=o.get("contentToOption"),d=Db(t);if("function"==typeof h){var f=h(e.getOption());"string"==typeof f?l.innerHTML=f:T(f)&&l.appendChild(f)}else l.appendChild(u),u.readOnly=o.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=o.get("textColor"),u.style.borderColor=o.get("textareaBorderColor"),u.style.backgroundColor=o.get("textareaColor"),u.value=d.value;var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+o.get("buttonColor"),m+=";color:"+o.get("buttonTextColor");var x=this;Se(v,"click",i),Se(y,"click",function(){var t;try{t="function"==typeof c?c(l,e.getOption()):Ob(u.value,p)}catch(n){throw i(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),i()}),v.innerHTML=s[1],y.innerHTML=s[2],y.style.cssText=m,v.style.cssText=m,!o.get("readOnly")&&g.appendChild(y),g.appendChild(v),a.appendChild(r),a.appendChild(l),a.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},Eb.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},Eb.prototype.dispose=function(t,e){this.remove(t,e)},sb("dataView",Eb),ku({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];f(t.newOption.series,function(t){var n=e.getSeriesByName(t.name)[0];if(n){var o=n.get("data");i.push({name:t.name,data:Nb(t.data,o)})}else i.push(r({type:"scatter"},t))}),e.mergeOption(s({series:i},t.newOption))});var eG=f,iG="\x00_ec_hist_store";AB.extend({type:"dataZoom.select"}),DB.extend({type:"dataZoom.select"});var nG=FD.toolbox.dataZoom,oG=f,aG="\x00_ec_\x00toolbox-dataZoom_";Fb.defaultOption={show:!0,filterMode:"filter",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"},title:n(nG.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var rG=Fb.prototype;rG.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,Zb(t,e,this,n,i),Hb(t,e)},rG.onclick=function(t,e,i){sG[i].call(this)},rG.remove=function(){this._brushController.unmount()},rG.dispose=function(){this._brushController.dispose()};var sG={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(Rb(this.ecModel))}};rG._onBrush=function(t,e){function i(t,e,i){var r=e.getAxis(t),s=r.model,l=n(t,s,a),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();(null!=u.minValueSpan||null!=u.maxValueSpan)&&(i=zN(0,i.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(o[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function n(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){var o=i.getAxisModel(t,e.componentIndex);o&&(n=i)}),n}if(e.isEnd&&t.length){var o={},a=this.ecModel;this._brushController.updateCovers([]);var r=new Zw(Wb(this.model.option),a,{include:["grid"]});r.matchOutputRanges(t,a,function(t,e,n){if("cartesian2d"===n.type){var o=t.brushType;"rect"===o?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[o],n,e)}}),zb(a,o),this._dispatchZoomAction(o)}},rG._dispatchZoomAction=function(t){var e=[];oG(t,function(t){e.push(n(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},sb("dataZoom",Fb),Du(function(t){function e(t,e){if(e){var o=t+"Index",a=e[o];null==a||"all"===a||_(a)||(a=a===!1||"none"===a?[]:[a]),i(t,function(i,r){if(null==a||"all"===a||-1!==u(a,r)){var s={type:"select",$fromToolbox:!0,filterMode:e.filterMode||"filter",id:aG+t+r};s[o]=r,n.push(s)}})}}function i(e,i){var n=t[e];_(n)||(n=n?[n]:[]),oG(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);_(n)||(t.dataZoom=n=[n]);var o=t.toolbox;if(o&&(_(o)&&(o=o[0]),o&&o.feature)){var a=o.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}});var lG=FD.toolbox.restore;Ub.defaultOption={show:!0,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:lG.title};var uG=Ub.prototype;uG.onclick=function(t,e){Bb(t),e.dispatchAction({type:"restore",from:this.uid})},sb("restore",Ub),ku({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var hG={path:null,compoundPath:null,group:xM,image:Dn,text:ET};Du(function(t){var e=t.graphic;_(e)?t.graphic=e[0]&&e[0].elements?[t.graphic[0]]:[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var cG=Bu({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(){var t=this.option.elements;this.option.elements=null,cG.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,o=i.elements=e?[]:i.elements,a=[];this._flatten(n,a);var r=oo(o,a);ao(r);var s=this._elOptionsToUpdate=[];f(r,function(t,e){var i=t.option;eS&&O(S(i)||t.exist,"Empty graphic option definition"),i&&(s.push(i),Kb(t,i),$b(o,e,i),Jb(o[e],i))},this);for(var l=o.length-1;l>=0;l--)null==o[l]?o.splice(l,1):delete o[l].$action},_flatten:function(t,e,i){f(t,function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});Vu({type:"graphic",init:function(){this._elMap=B(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group;f(e,function(e){var o=e.$action,a=e.id,r=i.get(a),s=e.parentId,l=null!=s?i.get(s):n,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var h=jb(e);eS&&r&&O(l===r.parent,"Changing parent is not supported."),o&&"merge"!==o?"replace"===o?(Yb(r,i),Xb(a,l,h,i)):"remove"===o&&Yb(r,i):r?r.attr(h):Xb(a,l,h,i);var c=i.get(a);c&&(c.__ecGraphicWidthOption=e.width,c.__ecGraphicHeightOption=e.height,Qb(c,t,e))})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,o=this._elMap,a=e.getWidth(),r=e.getHeight(),s=0;s=0;s--){var l=i[s],u=o.get(l.id);if(u){var h=u.parent,d=h===n?{width:a,height:r}:{width:h.__ecGraphicWidth,height:h.__ecGraphicHeight};es(u,l,d,null,{hv:l.hv,boundingMode:l.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){Yb(e,t)}),this._elMap=B()},dispose:function(){this._clear()}}),t.version=xC,t.dependencies=_C,t.PRIORITY=OC,t.init=wu,t.connect=bu,t.disConnect=Su,t.disconnect=QC,t.dispose=Mu,t.getInstanceByDom=Iu,t.getInstanceById=Tu,t.registerTheme=Au,t.registerPreprocessor=Du,t.registerProcessor=Cu,t.registerPostUpdate=Lu,t.registerAction=ku,t.registerCoordinateSystem=Pu,t.getCoordinateSystemDimensions=Ou,t.registerLayout=Eu,t.registerVisual=Nu,t.registerLoading=Ru,t.extendComponentModel=Bu,t.extendComponentView=Vu,t.extendSeriesModel=Gu,t.extendChartView=Fu,t.setCanvasCreator=Wu,t.registerMap=Hu,t.getMap=Zu,t.dataTool=tL,t.zrender=vI,t.number=DA,t.format=NA,t.throttle=bl,t.helper=ik,t.matrix=FS,t.vector=IS,t.color=rM,t.parseGeoJSON=ok,t.parseGeoJson=lk,t.util=uk,t.graphic=hk,t.List=dL,t.Model=mr,t.Axis=sk,t.env=aS}); \ No newline at end of file diff --git a/web/src/eventemitter.js b/web/src/eventemitter.js new file mode 100644 index 0000000..14fcf69 --- /dev/null +++ b/web/src/eventemitter.js @@ -0,0 +1,486 @@ +/*! + * EventEmitter v5.2.8 - git.io/ee + * Unlicense - http://unlicense.org/ + * Oliver Caldwell - https://oli.me.uk/ + * @preserve + */ + +;(function (exports) { + 'use strict'; + + /** + * Class for managing events. + * Can be extended to provide event functionality in other classes. + * + * @class EventEmitter Manages event registering and emitting. + */ + function EventEmitter() {} + + // Shortcuts to improve speed and size + var proto = EventEmitter.prototype; + var originalGlobalValue = exports.EventEmitter; + + /** + * Finds the index of the listener for the event in its storage array. + * + * @param {Function[]} listeners Array of listeners to search through. + * @param {Function} listener Method to look for. + * @return {Number} Index of the specified listener, -1 if not found + * @api private + */ + function indexOfListener(listeners, listener) { + var i = listeners.length; + while (i--) { + if (listeners[i].listener === listener) { + return i; + } + } + + return -1; + } + + /** + * Alias a method while keeping the context correct, to allow for overwriting of target method. + * + * @param {String} name The name of the target method. + * @return {Function} The aliased method + * @api private + */ + function alias(name) { + return function aliasClosure() { + return this[name].apply(this, arguments); + }; + } + + /** + * Returns the listener array for the specified event. + * Will initialise the event object and listener arrays if required. + * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them. + * Each property in the object response is an array of listener functions. + * + * @param {String|RegExp} evt Name of the event to return the listeners from. + * @return {Function[]|Object} All listener functions for the event. + */ + proto.getListeners = function getListeners(evt) { + var events = this._getEvents(); + var response; + var key; + + // Return a concatenated array of all matching events if + // the selector is a regular expression. + if (evt instanceof RegExp) { + response = {}; + for (key in events) { + if (events.hasOwnProperty(key) && evt.test(key)) { + response[key] = events[key]; + } + } + } + else { + response = events[evt] || (events[evt] = []); + } + + return response; + }; + + /** + * Takes a list of listener objects and flattens it into a list of listener functions. + * + * @param {Object[]} listeners Raw listener objects. + * @return {Function[]} Just the listener functions. + */ + proto.flattenListeners = function flattenListeners(listeners) { + var flatListeners = []; + var i; + + for (i = 0; i < listeners.length; i += 1) { + flatListeners.push(listeners[i].listener); + } + + return flatListeners; + }; + + /** + * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful. + * + * @param {String|RegExp} evt Name of the event to return the listeners from. + * @return {Object} All listener functions for an event in an object. + */ + proto.getListenersAsObject = function getListenersAsObject(evt) { + var listeners = this.getListeners(evt); + var response; + + if (listeners instanceof Array) { + response = {}; + response[evt] = listeners; + } + + return response || listeners; + }; + + function isValidListener (listener) { + if (typeof listener === 'function' || listener instanceof RegExp) { + return true + } else if (listener && typeof listener === 'object') { + return isValidListener(listener.listener) + } else { + return false + } + } + + /** + * Adds a listener function to the specified event. + * The listener will not be added if it is a duplicate. + * If the listener returns true then it will be removed after it is called. + * If you pass a regular expression as the event name then the listener will be added to all events that match it. + * + * @param {String|RegExp} evt Name of the event to attach the listener to. + * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.addListener = function addListener(evt, listener) { + if (!isValidListener(listener)) { + throw new TypeError('listener must be a function'); + } + + var listeners = this.getListenersAsObject(evt); + var listenerIsWrapped = typeof listener === 'object'; + var key; + + for (key in listeners) { + if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) { + listeners[key].push(listenerIsWrapped ? listener : { + listener: listener, + once: false + }); + } + } + + return this; + }; + + /** + * Alias of addListener + */ + proto.on = alias('addListener'); + + /** + * Semi-alias of addListener. It will add a listener that will be + * automatically removed after its first execution. + * + * @param {String|RegExp} evt Name of the event to attach the listener to. + * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.addOnceListener = function addOnceListener(evt, listener) { + return this.addListener(evt, { + listener: listener, + once: true + }); + }; + + /** + * Alias of addOnceListener. + */ + proto.once = alias('addOnceListener'); + + /** + * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad. + * You need to tell it what event names should be matched by a regex. + * + * @param {String} evt Name of the event to create. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.defineEvent = function defineEvent(evt) { + this.getListeners(evt); + return this; + }; + + /** + * Uses defineEvent to define multiple events. + * + * @param {String[]} evts An array of event names to define. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.defineEvents = function defineEvents(evts) { + for (var i = 0; i < evts.length; i += 1) { + this.defineEvent(evts[i]); + } + return this; + }; + + /** + * Removes a listener function from the specified event. + * When passed a regular expression as the event name, it will remove the listener from all events that match it. + * + * @param {String|RegExp} evt Name of the event to remove the listener from. + * @param {Function} listener Method to remove from the event. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.removeListener = function removeListener(evt, listener) { + var listeners = this.getListenersAsObject(evt); + var index; + var key; + + for (key in listeners) { + if (listeners.hasOwnProperty(key)) { + index = indexOfListener(listeners[key], listener); + + if (index !== -1) { + listeners[key].splice(index, 1); + } + } + } + + return this; + }; + + /** + * Alias of removeListener + */ + proto.off = alias('removeListener'); + + /** + * Adds listeners in bulk using the manipulateListeners method. + * If you pass an object as the first argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added. + * You can also pass it a regular expression to add the array of listeners to all events that match it. + * Yeah, this function does quite a bit. That's probably a bad thing. + * + * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once. + * @param {Function[]} [listeners] An optional array of listener functions to add. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.addListeners = function addListeners(evt, listeners) { + // Pass through to manipulateListeners + return this.manipulateListeners(false, evt, listeners); + }; + + /** + * Removes listeners in bulk using the manipulateListeners method. + * If you pass an object as the first argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. + * You can also pass it an event name and an array of listeners to be removed. + * You can also pass it a regular expression to remove the listeners from all events that match it. + * + * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once. + * @param {Function[]} [listeners] An optional array of listener functions to remove. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.removeListeners = function removeListeners(evt, listeners) { + // Pass through to manipulateListeners + return this.manipulateListeners(true, evt, listeners); + }; + + /** + * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level. + * The first argument will determine if the listeners are removed (true) or added (false). + * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. + * You can also pass it an event name and an array of listeners to be added/removed. + * You can also pass it a regular expression to manipulate the listeners of all events that match it. + * + * @param {Boolean} remove True if you want to remove listeners, false if you want to add. + * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once. + * @param {Function[]} [listeners] An optional array of listener functions to add/remove. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) { + var i; + var value; + var single = remove ? this.removeListener : this.addListener; + var multiple = remove ? this.removeListeners : this.addListeners; + + // If evt is an object then pass each of its properties to this method + if (typeof evt === 'object' && !(evt instanceof RegExp)) { + for (i in evt) { + if (evt.hasOwnProperty(i) && (value = evt[i])) { + // Pass the single listener straight through to the singular method + if (typeof value === 'function') { + single.call(this, i, value); + } + else { + // Otherwise pass back to the multiple function + multiple.call(this, i, value); + } + } + } + } + else { + // So evt must be a string + // And listeners must be an array of listeners + // Loop over it and pass each one to the multiple method + i = listeners.length; + while (i--) { + single.call(this, evt, listeners[i]); + } + } + + return this; + }; + + /** + * Removes all listeners from a specified event. + * If you do not specify an event then all listeners will be removed. + * That means every event will be emptied. + * You can also pass a regex to remove all events that match it. + * + * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.removeEvent = function removeEvent(evt) { + var type = typeof evt; + var events = this._getEvents(); + var key; + + // Remove different things depending on the state of evt + if (type === 'string') { + // Remove all listeners for the specified event + delete events[evt]; + } + else if (evt instanceof RegExp) { + // Remove all events matching the regex. + for (key in events) { + if (events.hasOwnProperty(key) && evt.test(key)) { + delete events[key]; + } + } + } + else { + // Remove all listeners in all events + delete this._events; + } + + return this; + }; + + /** + * Alias of removeEvent. + * + * Added to mirror the node API. + */ + proto.removeAllListeners = alias('removeEvent'); + + /** + * Emits an event of your choice. + * When emitted, every listener attached to that event will be executed. + * If you pass the optional argument array then those arguments will be passed to every listener upon execution. + * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately. + * So they will not arrive within the array on the other side, they will be separate. + * You can also pass a regular expression to emit to all events that match it. + * + * @param {String|RegExp} evt Name of the event to emit and execute listeners for. + * @param {Array} [args] Optional array of arguments to be passed to each listener. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.emitEvent = function emitEvent(evt, args) { + var listenersMap = this.getListenersAsObject(evt); + var listeners; + var listener; + var i; + var key; + var response; + + for (key in listenersMap) { + if (listenersMap.hasOwnProperty(key)) { + listeners = listenersMap[key].slice(0); + + for (i = 0; i < listeners.length; i++) { + // If the listener returns true then it shall be removed from the event + // The function is executed either with a basic call or an apply if there is an args array + listener = listeners[i]; + + if (listener.once === true) { + this.removeListener(evt, listener.listener); + } + + response = listener.listener.apply(this, args || []); + + if (response === this._getOnceReturnValue()) { + this.removeListener(evt, listener.listener); + } + } + } + } + + return this; + }; + + /** + * Alias of emitEvent + */ + proto.trigger = alias('emitEvent'); + + /** + * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on. + * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it. + * + * @param {String|RegExp} evt Name of the event to emit and execute listeners for. + * @param {...*} Optional additional arguments to be passed to each listener. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.emit = function emit(evt) { + var args = Array.prototype.slice.call(arguments, 1); + return this.emitEvent(evt, args); + }; + + /** + * Sets the current value to check against when executing listeners. If a + * listeners return value matches the one set here then it will be removed + * after execution. This value defaults to true. + * + * @param {*} value The new value to check for when executing listeners. + * @return {Object} Current instance of EventEmitter for chaining. + */ + proto.setOnceReturnValue = function setOnceReturnValue(value) { + this._onceReturnValue = value; + return this; + }; + + /** + * Fetches the current value to check against when executing listeners. If + * the listeners return value matches this one then it should be removed + * automatically. It will return true by default. + * + * @return {*|Boolean} The current value to check for or the default, true. + * @api private + */ + proto._getOnceReturnValue = function _getOnceReturnValue() { + if (this.hasOwnProperty('_onceReturnValue')) { + return this._onceReturnValue; + } + else { + return true; + } + }; + + /** + * Fetches the events object and creates one if required. + * + * @return {Object} The events storage object. + * @api private + */ + proto._getEvents = function _getEvents() { + return this._events || (this._events = {}); + }; + + /** + * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version. + * + * @return {Function} Non conflicting EventEmitter class. + */ + EventEmitter.noConflict = function noConflict() { + exports.EventEmitter = originalGlobalValue; + return EventEmitter; + }; + + // Expose the class either via AMD, CommonJS or the global object + if (typeof define === 'function' && define.amd) { + define(function () { + return EventEmitter; + }); + } + else if (typeof module === 'object' && module.exports){ + module.exports = EventEmitter; + } + else { + exports.EventEmitter = EventEmitter; + } +}(typeof window !== 'undefined' ? window : this || {})); \ No newline at end of file diff --git a/web/src/icontains.js b/web/src/icontains.js new file mode 100644 index 0000000..c74180c --- /dev/null +++ b/web/src/icontains.js @@ -0,0 +1 @@ +$.expr[':'].icontains = function (obj, index, meta, stack) { return (obj.textContent || obj.innerText || jQuery(obj).text() || '').toLowerCase().indexOf(meta[3].toLowerCase()) >= 0; }; diff --git a/web/src/jquery.min.js b/web/src/jquery.min.js new file mode 100644 index 0000000..0078d6b --- /dev/null +++ b/web/src/jquery.min.js @@ -0,0 +1,19 @@ +/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; + +return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
          a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/\s*$/g,ra={option:[1,""],legend:[1,"
          ","
          "],area:[1,"",""],param:[1,"",""],thead:[1,"","
          "],tr:[2,"","
          "],col:[2,"","
          "],td:[3,"","
          "],_default:k.htmlSerialize?[0,"",""]:[1,"X
          ","
          "]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?""!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("